W3C home > Mailing lists > Public > www-style@w3.org > July 2007

Re: [CSS21] New Candidate Recommendation

From: Andrei Polushin <polushin@gmail.com>
Date: Sat, 21 Jul 2007 20:13:49 +0700
Message-ID: <46A2068D.6090700@gmail.com>
To: www-style@w3.org

In [CSS21, G.2]
<http://www.w3.org/TR/2007/CR-CSS21-20070719/grammar.html#scanner>:

The grammar rule:

    @{C}{H}{A}{R}{S}{E}{T}  {return CHARSET_SYM;}

Should be replaced by (reverted to):

    "@charset "             {return CHARSET_SYM;}

Because of the special rule for @charset in [CSS21, 4.4]
<http://www.w3.org/TR/2007/CR-CSS21-20070719/syndata.html#x57>:

> @charset must be written literally, i.e., the 10 characters
> '@charset "' (lowercase, no backslash escapes), followed by the
> encoding name, followed by '";'.


BTW, the wording about 10 characters '@charset "' is another problem,
because current grammar allows the '@charset ' to be followed by
either " or ' symbol:

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

where STRING is can be quoted as either "string1" or 'string2'.


Bert Bos wrote:
> Anyway, I've treated my colleagues to champagne today, to celebrate
> CSS 2.1. I hope you enjoy the new spec, too :-)

Good luck!

-- 
Andrei Polushin
Received on Saturday, 21 July 2007 13:13:54 GMT

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