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

Re: [css3-conditional] navigator.supportsCSS rather than window.supportsCSS

From: Florian Rivoal <florianr@opera.com>
Date: Fri, 03 Aug 2012 16:15:59 +0200
To: www-style@w3.org
Message-ID: <op.wigxwxki4p7avi@localhost.localdomain>
On Fri, 03 Aug 2012 16:03:19 +0200, Daniel Glazman  
<daniel.glazman@disruptive-innovations.com> wrote:

> Le 03/08/12 14:44, François REMY a écrit :
>> I remember I once proposed to use CSSDeclaration instead of the global
>> object.
>>
>> if(CSSDeclaration.isValid("color","red")) {
>> ...
>> }
>>
>> or
>>
>> if(CSSDeclaration.isValid("color: red")) {
>> ...
>> }
>
> That does make a lot of sense, indeed!

I assume you mean CSSStyleDeclaration rather than CSSDeclaration.

This makes some sense, but I am only moderately comfortable having it  
attached to every instance of a CSSStyleDeclaration
in the document, despite the fact that the result does not depend on which  
one you call it on.

  - Florian
Received on Friday, 3 August 2012 14:16:29 GMT

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