Skip to main content

resolve_inline_style

Function resolve_inline_style 

Source
pub fn resolve_inline_style(style_attr: &str) -> Vec<(String, CssValue, bool)>
Expand description

Resolves a style attribute’s declarations into (name, value, important) triples, applying var() and !important handling like a rule block.

Inline styles participate in the cascade as author-origin declarations with the highest specificity, so callers should apply them after stylesheet declarations for the same element.