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

Re: [css3-mediaqueries] Should "@media { }" be valid?

From: Jarek Foksa <jarek@kiwi-themes.com>
Date: Mon, 28 Nov 2011 00:12:39 +0100
Message-ID: <CA+gFbux9KJjK8QjHV9QjRZ9nrBJ4AaELpe9F_+zAMfG9=FrKGg@mail.gmail.com>
To: www-style@w3.org
Oops, I haven't noticed the trailing ? sign. The grammar makes perfect sense.

On Sun, Nov 27, 2011 at 11:53 PM, Jarek Foksa <jarek@kiwi-themes.com> wrote:
> Example VII from latest revision of CSS3 Media Queries spec says that
> following two rules are equivalent:
>
>  @media all {  }
>  @media {  }
>
> However, the second rule does not follow the grammar as there must be
> at least one media_type or expression is media query:
>
>  media_query
>   : [ONLY | NOT]? S* media_type S* [ AND S* expression ]*
>   | expression [ AND S* expression ]*
>
> So, is this an error in the grammar or should such rule be really
> treated as invalid by parsers?
>
> Cheers,
> Jarek Foksa
>
Received on Monday, 28 November 2011 08:36:50 GMT

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