rust-cssparser ============== [![Build Status](https://github.com/servo/rust-cssparser/actions/workflows/main.yml/badge.svg)](https://github.com/servo/rust-cssparser/actions) [Documentation](https://docs.rs/cssparser) Rust implementation of [CSS Syntax Module Level 3](https://drafts.csswg.org/css-syntax/) Overview -------- Parsing CSS involves a series of steps: * When parsing from bytes, (e.g. reading a file or fetching an URL from the network,) detect the character encoding (based on a `Content-Type` HTTP header, an `@charset` rule, a BOM, etc.) and decode to Unicode text. rust-cssparser does not do this yet and just assumes UTF-8. This step is skipped when parsing from Unicode, e.g. in an HTML `