pub fn apply_inline_declaration(
name: &str,
value: &str,
attrs: &mut Attributes,
) -> Result<bool, ParseError>Expand description
Apply one inline-style declaration (element.style layer) onto
attrs, overriding whatever the stylesheet cascade resolved. A restyle
passes these to RestyleWalk after the markup’s own, so an inline
value beats every author / UA rule, mirroring DOM inline-style
precedence.
Returns Ok(true) when the property was recognized and applied,
Ok(false) for an unknown property (ignored), Err for an
unparseable value.