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

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

From: Alex Mogilevsky <alexmog@exchange.microsoft.com>
Date: Wed, 12 Dec 2007 09:30:55 -0800
To: Anne van Kesteren <annevk@opera.com>, "www-style@w3.org" <www-style@w3.org>
Message-ID: <04F36FB4ED0F85459AA447F72711526F011F3F0FD44B@DF-GRTDANE-MSG.exchange.corp.microsoft.com>
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 GMT

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