[csswg-drafts] [css-syntax] Tokenization rules don't allow parsing of CSS variables (#4018)

faceless2 has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-syntax] Tokenization rules don't allow parsing of CSS variables ==
Very simple one this. The tokenizer under section [4.3.1](https://drafts.csswg.org/css-syntax/#consume-token) doesn't allow a double hyphen to start an ident-like token, which means CSS variables wouldn't be parsed.

Needs changing from this:

> Otherwise, if the input stream starts with an identifier, reconsume the current input code point, consume an ident-like token, and return it.

to something like this:

> Otherwise, if the input stream starts with either an identifier, or a U+002D followed by an identifier, then reconsume the current input code point, consume an ident-like token, and return it.

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4018 using your GitHub account

Received on Friday, 7 June 2019 18:24:14 UTC