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

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

From: Ms2ger <ms2ger@gmail.com>
Date: Fri, 03 Aug 2012 16:56:45 +0200
Message-ID: <501BE6AD.3040500@gmail.com>
To: www-style@w3.org
On 08/03/2012 04:40 PM, Glenn Adams wrote:
> On Fri, Aug 3, 2012 at 8:15 AM, Florian Rivoal <florianr@opera.com> wrote:
>
>> 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.
>
>
> It could be defined on the prototype, i.e.,
> CSSStyleDeclaration.prototype.supportsCSS(...). Of course, this also means
> binding global.CSSStyleDeclaration (which at present isn't specified; i.e.,
>   no constructor is spec'd).

Note that global.CSSStyleDeclaration exists regardless of whether the 
interface has a constructor.

HTH
Ms2ger
Received on Friday, 3 August 2012 14:57:15 GMT

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