W3C home > Mailing lists > Public > public-css-testsuite@w3.org > October 2012

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

From: Simon Sapin <simon.sapin@kozea.fr>
Date: Thu, 04 Oct 2012 00:46:49 +0200
Message-ID: <506CC059.7040304@kozea.fr>
To: public-css-testsuite@w3.org
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 3 October 2012 22:47:33 GMT