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

Re: [css-variables] How to spec the OM for vars?

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Thu, 23 Aug 2012 22:21:02 -0700
Message-ID: <50370F3E.6070908@mit.edu>
To: Glenn Adams <glenn@skynav.com>
CC: "Tab Atkins Jr." <jackalmage@gmail.com>, www-style@w3.org
On 8/23/12 9:57 PM, Boris Zbarsky wrote:
> On 8/23/12 6:33 PM, Glenn Adams wrote:
>> My current thinking is to *only* define getter/setter and have it cover
>> the existing CSS2Properties etc rather than define new partial
>> interfaces ad infinitum.
> As I said in my reply to Tab, I'm somewhat opposed to that.
> Note also that if you do it that way page script won't be able to hook
> the getters and setters for CSS properties, which is also not that great.

And another problem: the change would not be backwards-compatible.  If 
you moved the existing attributes to a "getter" setup and a web page had 

   Object.prototype.display = 5;

then suddenly .style.display would stop working, whereas right now it 
works in that situation in all browsers.

I, personally, am not willing to take web compat risks like that in 
Gecko, especially when I don't see much of an upside.

Received on Friday, 24 August 2012 05:21:32 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:20 UTC