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

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

From: Glenn Adams <glenn@skynav.com>
Date: Fri, 24 Aug 2012 13:04:26 +0800
Message-ID: <CACQ=j+cft9vKPvYKwYaG5KAeAH26D-e9eGBL_AmX8JdPsKrQHw@mail.gmail.com>
To: Boris Zbarsky <bzbarsky@mit.edu>
Cc: "Tab Atkins Jr." <jackalmage@gmail.com>, www-style@w3.org
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

This archive was generated by hypermail 2.4.0 : Monday, 23 January 2023 02:14:18 UTC