Re: [css3-mediaqueries] Parsing media queries

On Mon, 15 Jan 2007 15:12:20 +0100, Anne van Kesteren <annevk@opera.com>  
wrote:
> In HTML4 it was pretty clear. You first split on the "," and then remove  
> all characters after the first non ASCII-letter, hyhen or digit. The  
> resulting values are the media specified.
>
> For Media Queries it's not clear what rules you have to follow when the  
> media query given (after splitting on ",") doesn't match the syntax.  
> It's important to know this for the CSSOM MediaList interface for  
> instance.

So for instance, what are the media queries here:

   1. "x and (y)"
   2. "x and (y"
   3. "x and (, y"
   4. "not (x), only"

Also, should the "only" keyword survive when storing the media query?  
Opera drops it at the moment. "not" isn't dropped, of course.


-- 
Anne van Kesteren
<http://annevankesteren.nl/>
<http://www.opera.com/>

Received on Monday, 15 January 2007 14:36:44 UTC