W3C home > Mailing lists > Public > www-style@w3.org > November 1999

Error in CSS grammar (surely not!)

From: Matthew Brealey <thelawnet@yahoo.com>
Date: Mon, 22 Nov 1999 08:57:36 -0800 (PST)
Message-ID: <19991122165736.25627.rocketmail@web904.mail.yahoo.com>
To: www-style <www-style@w3.org>
http://www.w3.org/TR/REC-CSS2/syndata.html#at-rules
states:

CSS2 user agents must ignore any '@import' rule that
occurs inside a block or that doesn't precede
all rule sets. 


http://www.w3.org/TR/REC-CSS2/grammar.html#q1 states:

stylesheet
  : [ CHARSET_SYM S* STRING S* ';' ]?
    [S|CDO|CDC]* [ import [S|CDO|CDC]* ]*
    [ [ ruleset | media | page | font_face ]
[S|CDO|CDC]* ]*
  ;

When for the two statements to consistent, it should
state:

stylesheet
  : [ CHARSET_SYM S* STRING S* ';' ]?
    [S|CDO|CDC]*   
  [ [ import | page | font_face ] [S|CDO|CDC]* ]*
    [ [ ruleset | media | page | font_face ]
[S|CDO|CDC]* ]*
  ;

For the statement at
http://www.w3.org/TR/REC-CSS2/syndata.html#at-rules 
to be consistent, it should read:

CSS2 user agents must ignore any '@import' rule that
doesn't precede
all blocks. 





=====
----------------------------------------------------------
From Matthew Brealey (http://members.tripod.co.uk/lawnet (for law)or http://members.tripod.co.uk/lawnet/WEBFRAME.HTM (for CSS))
__________________________________________________
Do You Yahoo!?
Bid and sell for free at http://auctions.yahoo.com
Received on Monday, 22 November 1999 11:57:38 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:01 GMT