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

On Fri, Aug 24, 2012 at 12:55 PM, Boris Zbarsky <bzbarsky@mit.edu> wrote:

> On 8/23/12 6:22 PM, Tab Atkins Jr. wrote:
>
>> That works nicely with the existing attributes, I assume?  Or do I
>> need to write the getter/setter to handle them as well?
>>
> So my personal preference would be to use the IDL "getter" and "setter"
> syntax for vars only and use normal IDL attributes for actual properties.


My concern on this is that it will be a rather never-ending spec
maintenance problem, requiring new partial interfaces on a regular basis
(i.e., every time new CSS props are introduced or changed).

It would sure be much easier to define once in prose with a general purpose
g/s pair.

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.


How much is this used? Could you give a code snippet showing such usage (to
make sure I understand you)?

Received on Friday, 24 August 2012 05:05:20 UTC