Expand description
A CSS resolver that handles selector matching and value resolution.
Structs§
- CssResolver
- Media
Environment - Values used to evaluate media queries for the current page.
- Resolved
Declaration - A single CSS declaration after selector resolution and value processing.
- RuleSet
- Indexed collection of resolved CSS declarations partitioned by selector subject.
- Selector
Group - Declarations whose selectors are structurally identical. Matching
selectoronce is sufficient to cascade every declaration indecls;declsholds indices intoRuleSet::declarations.
Enums§
- Style
Origin - Origin of a declaration in the CSS cascade.
Functions§
- append_
resolved_ styles - Appends resolved declarations while preserving source order across stylesheets.
- filter_
media - Keeps only declarations whose enclosing media queries currently match.
- resolve_
inline_ style - Resolves a
styleattribute’s declarations into (name, value, important) triples, applyingvar()and!importanthandling like a rule block. - resolve_
inline_ value