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

Re: [css3-mediaqueries] Parsing media queries

From: Anne van Kesteren <annevk@opera.com>
Date: Mon, 15 Jan 2007 15:36:28 +0100
To: www-style@w3.org
Message-ID: <op.tl69i2a864w2qv@id-c0020>

On Mon, 15 Jan 2007 15:12:20 +0100, Anne van Kesteren <annevk@opera.com>  
> 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
Received on Monday, 15 January 2007 14:36:44 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:27 UTC