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

Re: @media all minified?

From: see <csad7@t-online.de>
Date: Wed, 09 Jul 2008 14:09:32 +0200
Message-ID: <4874AA7C.90409@gmail.com>
To: "www-style@w3.org" <www-style@w3.org>

see wrote:
> 
> hi,
> I have a question regarding a "minified" serialization of e.g.
> 
>     @media all {a {color: red }}
> 
> I guess the following would not be the equivalent:
> 
>     @mediaall{a{color:red}}
> 
> as there is no space between @media and all and if tokenizing this it 
> would lead to a single token ``@mediaall`` and not ``@media`` followed 
> by ``all`` (from the spec: ATKEYWORD     @{ident})?
> 
> I think it has to be:
>     @media all{a{color:red}}
> 
> Safari nevertheless seems to acknowledge both, other browsers (IE7, FF3) 
> do not.

just checked the CSS grammar again, the tokenizer is defined here as:

	@{M}{E}{D}{I}{A}	{return MEDIA_SYM;}

Safari seems to be working right here then?


> 
> Just to be sure I would like to ask the proper behaviour here.
> 
> thanks
> Christof
> 
Received on Wednesday, 9 July 2008 12:10:32 GMT

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