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 <style> element. Tokeniza