W3C home > Mailing lists > Public > www-style@w3.org > April 2010

Re: [cssom] CSS Value API

From: Estelle Weyl <estelle@weyl.org>
Date: Thu, 22 Apr 2010 11:23:12 -0700
Cc: Brad Kemper <brad.kemper@gmail.com>, Anne van Kesteren <annevk@opera.com>, Boris Zbarsky <bzbarsky@mit.edu>, Ojan Vafai <ojan@chromium.org>, "www-style@w3.org" <www-style@w3.org>
Message-Id: <0C4696F9-2D5B-475A-9514-8AB26CEE869F@weyl.org>
To: "Tab Atkins Jr." <jackalmage@gmail.com>
Do we have an option for different  syntax / units?

for example:

..color.rgb returning rgb() instead of hex // rgb(255, 0, 0)  instead  
of #FF0000
..color.rgba
..color.hsla
..color.colorName
rads, versus grads versus degrees?
Hz / kHz

etc

-Estelle






On Apr 22, 2010, at 10:57 AM, Tab Atkins Jr. wrote:

> On Thu, Apr 22, 2010 at 10:25 AM, Brad Kemper  
> <brad.kemper@gmail.com> wrote:
>> myEl.style.foo // --> "bar 2px, baz 3px, quux 4px"
>> myEl.style.foo[0] // coerced to string --> "bar 2px"
>> myEl.style.foo[0][0] // --> "bar"
>> myEl.style.foo[0].snork // --> "bar"
>> myEl.style.foo[0].width.px // --> 2
>> myEl.style.foo[1] // coerced to string --> "baz 3px"
>> myEl.style.foo[1][0] // --> "baz"
>> myEl.style.foo[1].snork // --> "baz"
>> myEl.style.foo[1].width.px // --> 3
>
> I presume that foo.snork would return the same thing as  
> foo[0].snork, and so on?
>
> ~TJ
>
Received on Thursday, 22 April 2010 18:28:01 GMT

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