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

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

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Fri, 3 Aug 2012 08:04:12 -0700
Message-ID: <CAAWBYDA2MtEg+jUC_fLiTT8gwYbDGuOX5VKhniPSXoM5NaOJwQ@mail.gmail.com>
To: Florian Rivoal <florianr@opera.com>
Cc: "www-style@w3.org" <www-style@w3.org>
On Fri, Aug 3, 2012 at 5:35 AM, Florian Rivoal <florianr@opera.com> wrote:
> 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.

Attaching it to navigator or CSSStyleDeclaration means that its
already somewhat-long name becomes much longer.

I don't think adding on to window is a big deal.  If we do want to
avoid doing it, though, I suggest defining a new top-level interface
named "CSS" and hanging it off of that.  It's short and topical, and
it would be convenient for hanging some of the new css value
constructors we'll want for the cssom values api.

~TJ
Received on Friday, 3 August 2012 15:05:22 GMT

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