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

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

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Thu, 23 Aug 2012 17:46:22 -0700
Message-ID: <CAAWBYDAHpmZnMqBdUc01F=MvFhBaY8tp-DvK4hNtY5sWUa3Yxw@mail.gmail.com>
To: www-style list <www-style@w3.org>
One of the remaining issues for Variables is what to expose in the OM, and how.

Ideally, custom properties would just be exposed alongside all the
other properties, so you could do "el.style.varFoo = 'bar';" or "x =

This seems somewhat incompatible with how WebIDL works.  Right now,
all the CSS properties are just exposed on CSSStyleDeclaration as a
bunch of properties.  (If we were doing things properly, we'd do this
by having every spec define a partial interface on it and add their

However, there are an infinite number of custom properties.  I think
we want to expose only the custom properties that are valid (set to a
non-initial value).

How can we do this in WebIDL?

Received on Friday, 24 August 2012 00:47:11 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:39:03 UTC