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

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 UTC