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

Re: Parsing media queries

From: Anne van Kesteren <annevk@opera.com>
Date: Wed, 14 Nov 2007 15:44:54 +0100
To: "Henri Sivonen" <hsivonen@iki.fi>, fantasai <fantasai.lists@inkedblade.net>
Cc: "W3C Style List" <www-style@w3.org>
Message-ID: <op.t1sdw4bn64w2qv@annevk-t60.oslo.opera.com>

On Wed, 14 Nov 2007 15:34:43 +0100, Henri Sivonen <hsivonen@iki.fi> wrote:
> Does that mean ignoring for UA processing but counting as errors as far  
> as validation goes?

Yes.


> As for empty strings, these are all errors, right?
> "all,"
> ",all"
> "print,,screen"

I think that would make sense, though " " should also be a conforming  
media query meaning all. Maybe media_query_list should be defined as  
follows to capture that:

   media_query_list: WS? | [WS? <media_query> [WS? , WS? <media_query> ]*  
WS?]


> As Anne pointed out, the whitespace issue still remains.
>
> Also, are the keywords supposed to be tokenized as idents from CSS3  
> Syntax and then compared against a list of known names or are the key  
> words in theory part of the low level syntax? (I supposed this only  
> makes a difference for what error message would be right.)

Hmm, I suppose another problem is whether CSS escaping is allowed. This  
would make a limited amount of sense for @media, but not really for  
media="".


-- 
Anne van Kesteren
<http://annevankesteren.nl/>
<http://www.opera.com/>
Received on Wednesday, 14 November 2007 14:45:22 GMT

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