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

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

From: Jarek Foksa <jarek@kiwi-themes.com>
Date: Sun, 27 Nov 2011 23:53:11 +0100
Message-ID: <CA+gFbuwbJbj59swTCrok=17iB8pFyctex0m5VTi9PN-O8ZFDCg@mail.gmail.com>
To: www-style@w3.org
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