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

Re: [cssom] CSSStyleDeclaration

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Thu, 23 Feb 2012 08:31:30 -0800
Message-ID: <CAAWBYDBZ=9EDCzbbvE95cs_VA+7AJOKS+DY6sCxUXO8vY13O3Q@mail.gmail.com>
To: Boris Zbarsky <bzbarsky@mit.edu>
Cc: www-style@w3.org
On Thu, Feb 23, 2012 at 8:27 AM, Boris Zbarsky <bzbarsky@mit.edu> wrote:
> On 2/23/12 11:19 AM, Tab Atkins Jr. wrote:
>> On Thu, Feb 23, 2012 at 6:22 AM, Simon Pieters<simonp@opera.com>  wrote:
>>> http://dvcs.w3.org/hg/cssom/raw-file/tip/Overview.html/#cssstyledeclaration
>>>
>>> CSSStyleDeclaration should have a getter that "supports indexed
>>> properties".
>>
>> Yes, the current spec is woefully outdated.  In the upcoming update,
>> it should switch to using the getter syntax so it's not necessary to
>> try and list every CSS property.
>
> Note that this brings a behavior difference: the properties end up as own
> properties, not properties on the prototype.
>
> In particular, it makes polyfilling of various sorts more difficult.
>
> That might be OK, but we should keep that in mind if we make the change.

Hm, I didn't realize there was a behavior difference there.  Are you
aware of any polyfills for CSSStyleDeclaration?  I haven't seen any.

~TJ
Received on Thursday, 23 February 2012 16:32:33 GMT

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