Skip to main content

validate_css_declarations_text

Function validate_css_declarations_text 

Source
pub fn validate_css_declarations_text(
    decls: &str,
    config: &Config,
) -> Result<Report, ValidatorError>
Expand description

Validate a CSS declaration list (e.g. the contents of an HTML style="" attribute).

This is intentionally conservative and exists primarily for embedding the Rust CSS validator into the Rust HTML validator.