RE: [css3-mediaqueries] Request for feedback on syntax

I didn't follow the recent discussions on media queries closely so my opinion here may be random...

I seems to me that although using an existing parser for new content is a good implementation move, adding syntax elements just because they work can add unnecessary complications long-term. Who knows where we else we would want to use that value?

-----Original Message-----
From: www-style-request@w3.org [mailto:www-style-request@w3.org] On Behalf Of Anne van Kesteren
Sent: Wednesday, December 12, 2007 8:10 AM
To: www-style@w3.org
Subject: [css3-mediaqueries] Request for feedback on syntax


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
"x,/**/all".

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
<http://annevankesteren.nl/>
<http://www.opera.com/>

Received on Wednesday, 12 December 2007 17:31:13 UTC