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. - FlorianReceived on Friday, 3 August 2012 12:45:06 UTC
This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:19 UTC