W3C home > Mailing lists > Public > www-style@w3.org > December 2007

[css3-mediaqueries] Request for feedback on syntax

From: Anne van Kesteren <annevk@opera.com>
Date: Wed, 12 Dec 2007 17:09:33 +0100
To: www-style@w3.org
Message-ID: <op.t28ch7qy64w2qv@annevk-t60.oslo.opera.com>

Most implementations follow the HTML4 rules for media. From the few  
content surveys I've seen so far it does not seem that content relies on  
the error handling rules. Content uses conforming media queries (mostly  
'screen'). This suggests that we can probably completely override what  
HTML4 said by media queries. (This is what HTML5 currently suggests.) The  
implication of this would be that "{},all" would not apply in either HTML  
or CSS because it is a syntax error in both.

Now there is an open question on whether or not we want to use the CSS  
parser for media queries used in other languages. This is relevant for  
whether or not "all and (min-width:1p\x)" should work in HTML, or  

The advantage of simply using the CSS parser is that HTML implementations  
that also support CSS can easily reuse code. Another advantage is that  
authors can simply copy and paste their media query and that the way media  
queries are treated is predictable.

The disadvantage is that for non-CSS HTML implementations it would be  
slightly more complicated to support <link rel=alternate media=print  
href=print> for instance.

Any feedback on this?

Anne van Kesteren
Received on Wednesday, 12 December 2007 16:08:21 UTC

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