W3C home > Mailing lists > Public > www-style@w3.org > August 2012

Re: [css3-conditional] whitespace processing in supportsCSS

From: Cameron McCormack <cam@mcc.id.au>
Date: Sat, 04 Aug 2012 13:27:38 +1000
Message-ID: <501C96AA.9060200@mcc.id.au>
To: Florian Rivoal <florianr@opera.com>
CC: "www-style@w3.org" <www-style@w3.org>
Florian Rivoal:
> Instead, since it doesn't introduce any ambiguity or difficulty of
> implementation, I propose that we allow white spaces before and after both.
>
> window.supportsCSS("color", "green"); //-> true
> window.supportsCSS("color", "green "); //-> true
> window.supportsCSS("color", " green"); //-> true
> window.supportsCSS("color ", "green"); //-> true
> window.supportsCSS(" color", "green"); //-> true

I think that's fine.  Comments in the value and normal CSS escaping 
should work too, but these shouldn't be allowed in the property value. 
(The value argument is parsed, but the property name argument is just 
trimmed and looked up as a string.)
Received on Saturday, 4 August 2012 03:28:14 GMT

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