A single reverse solidus before EOF is tokenized incorrectly
romainmenke opened this issue · comments
csstree tokenizes this as a delim token with value \
which is incorrect.
Example :
<div style="--foo:\">
In Chrome this has : cssText: "--foo:�;"
This is tokenized as :
\
before EOF starts a valid escape- consume an ident
- EOF
- return U+FFFD REPLACEMENT CHARACTER
https://www.w3.org/TR/css-syntax-3/#consume-an-escaped-code-point