W3C home > Mailing lists > Public > www-style@w3.org > October 2009

Re: media queries syntax

From: Yves Lafon <ylafon@w3.org>
Date: Mon, 19 Oct 2009 10:02:52 -0400 (EDT)
To: Giovanni Campagna <scampa.giovanni@gmail.com>
cc: Bert Bos <bert@w3.org>, www-style@w3.org
Message-ID: <alpine.DEB.1.10.0910190955400.21600@wnl.j3.bet>
On Fri, 16 Oct 2009, Giovanni Campagna wrote:

>> Trying to parse (foo) with a CSS21 aprser based on CSS21 syntax will fail..
>
> While instead it is legally allowed by the core syntax, which says:
> at-rule: ATKEYWORD S* any* [ block | ';' S* ];
> any: [ IDENT | NUMBER | PERCENTAGE | DIMENSION | STRING
>              | DELIM | URI | HASH | UNICODE-RANGE | INCLUDES
>              | DASHMATCH | ':' | FUNCTION S* any* ')'
>              | '(' S* any* ')' | '[' S* any* ']' ] S*;
> so (foo) matches the "any" production (going '(' IDENT ')' ), and
> @media (any) is good core syntax, but ignored by forward compatible
> parsing rules for UA that don't implement the "foo" media feature.

Thanks for the pointer, and now I am wondering... would it be possible to 
add productions for  '(' term ')' and '[' term ']' in the versionned 
grammar? (even if those productions are not reachable from 'stylesheet') 
That would be extremely helpful. (and now I look at the possible issues in 
upgrading the CSS Validator grammar...)

-- 
Baroula que barouleras, au tiéu toujou t'entourneras.

         ~~Yves
Received on Monday, 19 October 2009 14:02:56 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:21 GMT