This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
The tokenizer as implemented in section G.2 (Lexical scanner) of the CSS 2.1 specification does not match the syntax as described in section 4.1.1 (Tokenization) in the way at-keywords are scanned. I can't describe the problem better than with an example: @importurl(foo.css) According to section 4.1.1, this should be tokenized as `ATKEYWORD ( IDENT DELIM IDENT )`. The scanner in G.2 tokenizes this as `IMPORT_SYM URI`. The main problem is that the latter doesn't correctly implement the rule of longest match for at-keywords.