W3C home > Mailing lists > Public > www-style@w3.org > February 2012

Re: [CSS21][Core grammar] Significant whitespace

From: Simon Sapin <simon.sapin@kozea.fr>
Date: Thu, 23 Feb 2012 21:03:01 +0100
Message-ID: <4F469B75.6090203@kozea.fr>
To: Boris Zbarsky <bzbarsky@MIT.EDU>
CC: www-style@w3.org
Le 23/02/2012 20:35, Boris Zbarsky a écrit :
>> Last one: "!important" is 2 tokens: DELIM then IDENT.
> It's a single token, as far as I can tell.  In CSS 2.1, at least, not
> necessarily per the core grammar...
>
>> >  "! important" would be 3: DELIM, S then IDENT.
> No, it's also a single token as far as I can tell.  Again, in CSS 2.1.
>
>> >  I think only the former  is valid in CSS 2.1 for priority
> "! important" is valid.  It's even used in the spec examples.
>
> The relevant part of the CSS2.1 tokenizer is:
>
> "!"({w}|{comment})*{I}{M}{P}{O}{R}{T}{A}{N}{T}	{return IMPORTANT_SYM;}


I see, thanks. I guess I’ll need to have a more careful look at both 
grammars, not just the core one.

-- 
Simon Sapin
Received on Thursday, 23 February 2012 20:03:31 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:51 GMT