Re: [css3-mediaqueries] Whitespace: "all and(color)" vs. "all and (color)"

Le 03/10/2012 23:16, Simon Sapin a écrit :
> Hi,
>
> Example 20 of css3-mediaqueries gives this as an invalid media query:
>
>       @media all and(color) { … }
>
> 'and(' is tokenized as a FUNCTION, so there should be some white space:
> 'and ('
>
> The test suite[1] does not test such cases but it should, since at least
> one implementation (Chromium 22) incorrectly parses this as a valid
> media query.
>
> [1]
> http://www.w3.org/Style/CSS/Test/MediaQueries/20120229/test_media_queries.html
>

I’ve pushed a test in /contributors/kozea, mimicking other tests in 
/contributors
https://hg.csswg.org/test/rev/3c457284e4a7

It is a standalone test, but it should be a 
query_should_not_be_parseable line in
/approved/css3-mediaqueries/src/test_media_queries.html

(If and after it is approved, of course.)

Cheers,
-- 
Simon Sapin

Received on Wednesday, 3 October 2012 22:47:32 UTC