Expand description
CSS parsing and property resolution.
Uses lightningcss for parsing CSS property values into typed Rust structs.
Structs§
- CssDeclaration
- A parsed CSS declaration (property: value pair).
- CssRule
- A CSS rule (selector + declarations).
Functions§
- apply_
declarations - Apply a set of CSS declarations to a ComputedStyle.
- apply_
property - Apply a single CSS property to a ComputedStyle.
- parse_
style_ attribute - Parse a CSS style string (e.g., from a
styleattribute) into declarations. - parse_
stylesheet - Parse a CSS stylesheet string into a list of rules.