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. - Stylesheet
Resolution - Result of resolving a stylesheet: cascaded declarations plus keyframes.
Enums§
- Pseudo
Element - The originating pseudo-element of a declaration, if any.
- Style
Origin - Origin of a declaration in the CSS cascade.
Functions§
- append_
resolved_ styles - Appends resolved declarations while preserving source order across stylesheets.
- evaluate_
media_ query - Evaluates a parsed media query (as produced by
crate::engine::css::parser::Parser::parse_media_query) against the current page environment, mirroring how@mediarules are filtered. - 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
Type Aliases§
- Keyframes
Registry - Registry of
@keyframesrules keyed by animation name. - Resolved
Styles