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

[css3-mediaqueries] contradictions about empty lists

From: L. David Baron <dbaron@dbaron.org>
Date: Thu, 19 Jun 2008 16:08:54 -0700
To: www-style@w3.org
Message-ID: <20080619230854.GA10071@pickering.dbaron.org>

http://dev.w3.org/csswg/css3-mediaqueries/#media0 says:
  # If the comma-separated list is the empty list it is assumed to
  # specify the media query ‘all’. 

But http://dev.w3.org/csswg/css3-mediaqueries/#syntax defines the
syntax of media_query_list to forbid the empty list.

This seems like a contradiction.  Is the empty list allowed or
forbidden?

Note that I think the wording about the empty list being equivalent
to 'all' should apply to the media attributes of HTML style and link
elements: see http://dbaron.org/css/test/2008/empty-media-attribute ,
which assumes that the #syntax section is correct.  It doesn't
matter for @import since the media list there is optional per
http://www.w3.org/TR/CSS21/cascade.html#at-import .  But I'm not
sure if we want to allow empty lists for @media.  Maybe it's ok,
though.

-David

-- 
L. David Baron                                 http://dbaron.org/
Mozilla Corporation                       http://www.mozilla.com/
Received on Thursday, 19 June 2008 23:09:31 GMT

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