Skip to main content

Module css

Module css 

Source
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 style attribute) into declarations.
parse_stylesheet
Parse a CSS stylesheet string into a list of rules.