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

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 UTC