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

Re: [css3-conditional] value of CSSSupportsRule.conditionText

From: Cameron McCormack <cam@mcc.id.au>
Date: Tue, 07 Aug 2012 10:05:07 +1000
Message-ID: <50205BB3.6030109@mcc.id.au>
To: "Tab Atkins Jr." <jackalmage@gmail.com>
CC: "L. David Baron" <dbaron@dbaron.org>, Daniel Glazman <daniel.glazman@disruptive-innovations.com>, www-style@w3.org
Tab Atkins Jr.:
> Actually, it'll still work even if we do make it apply to selectors in
> the future.  The only problem is reserializing, which is easy to
> detect and insert an empty comment for, as I proposed.

But it doesn't work if you want to allow selectors (or other syntax 
sensitive to a lack of white space between tokens) inside the supports 
condition.  For example with a hypothetical:

   @supports (foopy: select(#a/**/.b/**/)) { ... }

There's no way to know that the comment before the "." needs to be 
preserved while the one after the "b" can be dropped, if your UA doesn't 
implement foopy.  So we would need to preserve all comments within the 
property value parts of the supports condition, at least.
Received on Tuesday, 7 August 2012 00:06:10 GMT

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