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 09:33:10 +0800
Message-ID: <CACQ=j+dGkgEADDzbACKru_rQQ4haeCHJbw0+3-fyZFMu6AeTrQ@mail.gmail.com>
To: "Tab Atkins Jr." <jackalmage@gmail.com>
Cc: Boris Zbarsky <bzbarsky@mit.edu>, www-style@w3.org
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 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:58 GMT