This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 15372 - Flex code in CSS2 appendix incorrectly lexes at-keywords
Summary: Flex code in CSS2 appendix incorrectly lexes at-keywords
Status: NEW
Alias: None
Product: CSS
Classification: Unclassified
Component: CSS Level 2 (show other bugs)
Version: unspecified
Hardware: All Windows 3.1
: P2 normal
Target Milestone: ---
Assignee: Bert Bos
QA Contact: public-css-bugzilla
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-01 21:53 UTC by Stijn van Drongelen
Modified: 2017-12-04 05:52 UTC (History)
1 user (show)

See Also:


Attachments

Description Stijn van Drongelen 2012-01-01 21:53:09 UTC
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.