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

[css3-mediaqueries] parsing

From: Anne van Kesteren <annevk@opera.com>
Date: Fri, 04 Apr 2008 18:02:33 +0200
To: www-style@w3.org
Message-ID: <op.t83f6j2g64w2qv@annevk-t60.oslo.opera.com>

To match existing implementations better and also to give better forward  
compatible parsing rules maybe we should do it as follows:

* A violation of the basic syntax will cause the list of media queries to  
be ignored.
* An unknown media type, media feature, or unknown media feature value  
will cause the respective media query to be ignored, but not the whole  
list of media queries.
* The serialized form of an ignored media query or ignored list of media  
queries is "not all". (This will be specified in the CSSOM for now, maybe  
later in Media Queries Level 4.)
* These rules apply to usage in CSS and outside (such as HTML media="").

This would mean that

query           | dropped | serialized form
x x,all         | yes     | not all
not x,all       | no      | not all, all
all and x,all   | yes     | not all
all and (x),all | no      | not all, all

My plan is to update the media queries editor's draft to reflect this. If  
you have any comments please let me know.

Anne van Kesteren
Received on Friday, 4 April 2008 16:03:08 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:35 UTC