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

Re: [css3-mediaqueries] handling of unknown media types

From: Anne van Kesteren <annevk@opera.com>
Date: Wed, 11 Jun 2008 14:45:09 +0200
To: "Anne van Kesteren" <annevk@opera.com>, "Stewart Brodie" <stewart.brodie@antplc.com>
Cc: www-style@w3.org
Message-ID: <op.uck4djkp64w2qv@annevk-t60.oslo.opera.com>

On Tue, 10 Jun 2008 15:15:11 +0200, Anne van Kesteren <annevk@opera.com>  
wrote:
> On Tue, 10 Jun 2008 15:02:08 +0200, Stewart Brodie  
> <stewart.brodie@antplc.com> wrote:
>> It's not even just IDENT tokens: the "3d-glasses" example in the MQ  
>> spec is a DIMENSION - so I have a hack that reserialises DIMENSION  
>> tokens when I'm looking for a media type in the parser.
>
> Good point. David Baron didn't mention how he'd handle syntactically  
> incorrect types. (So far this didn't really matter as syntactically  
> incorrect and unrecognized was pretty much the same.)

Actually, for the "not 3d-glasses" case I would expect it to be simply  
ignored and therefore not evaluate to true. However, for anything that  
does match IDENT I would expect it to be preserved and therefore "not  
anything-that-matches-IDENT" would evaluate to true (as long as  
anything-that-matches-IDENT itself is not supported or is not the current  
media for the view).

Since nobody has really said anything other than not wanting more change  
I'll change (hah) this to be in line with Opera and WebKit and what David  
Baron preferred. (Which is also more in line with the previous Candidate  
Recommendation.)


-- 
Anne van Kesteren
<http://annevankesteren.nl/>
<http://www.opera.com/>
Received on Wednesday, 11 June 2008 12:46:12 GMT

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