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:48:10 -0700
Message-ID: <5037159A.9090207@mit.edu>
To: Cameron McCormack <cam@mcc.id.au>
CC: Glenn Adams <glenn@skynav.com>, "Tab Atkins Jr." <jackalmage@gmail.com>, www-style@w3.org
On 8/23/12 10:22 PM, Cameron McCormack wrote:
> Boris Zbarsky:
>> Obviously you could also log and then forward to the original getter or
>> setter and so forth.  People do this all the time right now with methods
>> in the web platform.  Granted, for methods there's a bit less
>> boilerplate needed.
> You could define it so that the getters/setters call
> getProperty/setProperty methods on the object, so authors could then
> intercept property accesses there.  (Same for variables, if we wanted to
> allow interception of variables.)  Not sure whether that's a good idea,
> performance-wise though.

It's not really, no.

Received on Friday, 24 August 2012 05:50:33 UTC

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