W3C home > Mailing lists > Public > public-css-testsuite@w3.org > December 2007

Re: Media Queries parsing

From: Anne van Kesteren <annevk@opera.com>
Date: Mon, 10 Dec 2007 11:59:24 +0100
To: "Stewart Brodie" <stewart.brodie@antplc.com>, public-css-testsuite@w3.org
Message-ID: <op.t238tanb64w2qv@annevk-t60.oslo.opera.com>

On Mon, 10 Dec 2007 11:53:41 +0100, Stewart Brodie  
<stewart.brodie@antplc.com> wrote:
> The empty string is not a valid media specifier according to the syntax
> definition in the specification, so I agree with you there.  However, the
> discrepancy between "" and "," does not feel right.  I don't think you  
> can have it both ways - you'd have to modify the syntax for  
> media_query_list to permit an empty string for the whole media query and  
> define it as being an alias for "all".

Yes, that's the plan.

> Did you ever resolve the "not foo" issue?  The issue being whether  
> unknown media types are always false, regardless of the 'not', or  
> whether this case it true because the not always negates the result of  
> evaluating the rest of the query.

Good point. I should add tests for those too. The plan of the WG is that  
"not foo" would be an ignored media query (parse error basically). If you  

   media="not foo,all"

it would evaluate to true and if you have

   media="not foo"

it would evaluate to false.

Anne van Kesteren
Received on Monday, 10 December 2007 10:58:55 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:13:17 UTC