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

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

From: Simon Sapin <simon.sapin@kozea.fr>
Date: Wed, 03 Oct 2012 23:16:06 +0200
Message-ID: <506CAB16.6020905@kozea.fr>
To: public-css-testsuite@w3.org
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

-- 
Simon Sapin
Received on Wednesday, 3 October 2012 21:17:01 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 3 October 2012 21:17:02 GMT