Expand description
Rust-based, suite-driven CSS validator.
This validator is intentionally conservative and focuses on catching issues that are likely to break real-world behavior, rather than aiming to be fully spec-complete.
§Example
use css_inspector::{Config, validate_css_text};
let report = validate_css_text("a { color: red; }", &Config::default()).unwrap();
assert!(report.valid());Structs§
- Config
- Configuration options for validation.
- Message
- Report
- StdFetcher
Enums§
Traits§
Functions§
- starts_
with_ ascii_ ci - url_
decode_ plus - validate_
css_ declarations_ text - Validate a CSS declaration list (e.g. the contents of an HTML
style=""attribute). - validate_
css_ text - Validate a CSS stylesheet passed as text.
- validate_
css_ text_ with_ fetcher - validate_
css_ uri_ with_ fetcher