W3C home > Mailing lists > Public > www-style@w3.org > September 2006

Re: [css3-mediaqueries] error handling in media queries?

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Fri, 22 Sep 2006 01:23:16 +0200
To: "Simon Pieters" <zcorpan@hotmail.com>
Cc: www-style@w3.org
Message-ID: <vh76h2duidvcbagk9io9g1msf9nuhesrlo@hive.bjoern.hoehrmann.de>

* Simon Pieters wrote:
>Then it would be different to how error handling in selectors work. What if 
>a future MQ defines special meaning to the comma, as in:
>
>   @media screen, all and not(aural, print, speech) {...}
>
>...then the above would in legacy UAs be treated as equivalent to:
>
>   @media screen, print {...}
>
>...while the intention of the new feature was to exclude print (for 
>instance).

Forward-compatible parsing depends on making certain assumptions about
how the format might evolve. In this case, HTML 4.01 defined that the
comma http://www.w3.org/TR/html401/types.html#type-media-descriptors is
separates entries, and as such, the format cannot be extended as above
without obviously breaking downlevel clients. In other words, you won't
extend the format like that and worry about compatibility.
-- 
Björn Höhrmann · mailto:bjoern@hoehrmann.de · http://bjoern.hoehrmann.de
Weinh. Str. 22 · Telefon: +49(0)621/4309674 · http://www.bjoernsworld.de
68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/ 
Received on Thursday, 21 September 2006 23:23:29 GMT

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