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

On Fri, Aug 24, 2012 at 9:22 AM, Tab Atkins Jr. <jackalmage@gmail.com>wrote:

> On Thu, Aug 23, 2012 at 6:12 PM, Boris Zbarsky <bzbarsky@mit.edu> wrote:
> > On 8/23/12 5:46 PM, Tab Atkins Jr. wrote:
> >>
> >> How can we do this in WebIDL?
> >
> > You can declare getters and setters that would live directly on the
> object
> > in WebIDL to support open-ended sets of properties.  So basically
> something
> > like this:
> >
> >   getter DOMString (DOMString varName);
> >   setter void (DOMString varName, DOMString varValue);
>
> That works nicely with the existing attributes, I assume?  Or do I
> need to write the getter/setter to handle them as well?
>

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. And that this g/s pair should be defined in such a way as to
cover variable as well.

Received on Friday, 24 August 2012 01:33:57 UTC