parcel-bundler / lightningcss

An extremely fast CSS parser, transformer, bundler, and minifier written in Rust.
https://lightningcss.dev
Mozilla Public License 2.0
6.27k stars 175 forks source link

Switch from non-ASCII code point to non-ASCII ident code point #155

Open jonathantneal opened 2 years ago

jonathantneal commented 2 years ago

In the CSS syntax, the list of allowed characters in an identifier has been narrowed down.

This is “an arcane detail that affects approximately no one”, but you may be one of the approximately no ones affected by this.

I’m also happy to make a PR to remediate this, tho I may need some assistance with adding tests.

devongovett commented 2 years ago

Thanks. The code you linked is currently only used to parse syntax strings in the @property rule. For other idents, we'll need to contribute to the underlying tokenizer in rust-cssparser, which would also affect Firefox. Perhaps opening an issue there or checking bugzilla to see about their plans would be a good start.