Re: [css-variables] ...let's change the syntax

On Mon, Mar 17, 2014 at 12:25 PM, Sylvain Galineau <galineau@adobe.com> wrote:
> On 3/15/14, 4:49 PM, "Tab Atkins Jr." <jackalmage@gmail.com> wrote:
>>Excellent, then.  I also prefer the aesthetics (not to mention
>>typeability) of --, so let's consider that the official front-runner.
>
> SGTM. But polyfills also need these custom properties to be reflected in
> the OM and getComputedStyle() results. How to I read the value of my
> custom —position or —display? (Not that I’d ever want to do such a thing;
> just asking for a friend…)

Nothing's changed regarding the impossibility of using "el.style.foo",
because of the case-sensitivity.  You'd have to use
.getPropertyValue() and .setPropertyValue() for now.

~TJ

Received on Monday, 17 March 2014 20:20:30 UTC