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

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

From: François REMY <fremycompany_pub@yahoo.fr>
Date: Fri, 3 Aug 2012 14:44:45 +0200
Message-ID: <1A124C2C388D4BEF9B5522D51E678AC6@FREMYD2>
To: <www-style@w3.org>, "Florian Rivoal" <florianr@opera.com>
I remember I once proposed to use CSSDeclaration instead of the global 
object.

    if(CSSDeclaration.isValid("color","red")) {
        ...
    }

or

    if(CSSDeclaration.isValid("color: red")) {
        ...
    }


-----Message d'origine----- 
From: Florian Rivoal
Sent: Friday, August 03, 2012 2:35 PM
To: www-style@w3.org
Subject: [css3-conditional] navigator.supportsCSS rather than 
window.supportsCSS

The global object ('window') of the DOM is already quite crowded.
Attaching supportsCSS to the 'navigator' object instead makes sense
semantically, and would avoid adding even more to the global object.

  - Florian 
Received on Friday, 3 August 2012 12:45:06 GMT

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