Negative zero must be tokenized as `-0`

#8 · open · 0 comments

View on GitHub ↗

romainmenke

https://github.com/keithamus/csslex/blob/7182786dfcd1a553ac60f82d7a66bb4a48607d29/mod.ts#L512C33-L512C38 Apparently I got it wrong and `-0` after tokenizing must have an actual negative zero value. WPT tests were added a few months ago : https://github.com/web-platform-tests/wpt/pull/43430 The tokenizer tests have also been updated to correctly record the expected `-0` value in the test corpus.

Comments