https://www.w3.org/TR/css-syntax-3/#tokenizationThey didn't need to define so many fucking tokens: The colon-token, semicolon-token, comma-token, etc. are all just delim-token, the same one-character type! It doesn't make any sense.
Of course, my competitor went the full-retard route with ridiculous bloat, as usual:
https://github.com/lexborisov/mycss/blob/master/source/mycss/tokenizer.cIn other news, I've shrunk the HTML tokeniser to slightly under 1KB. The CSS one may only be slightly larger.