Re: [cssom] CSS Value API

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?

Yes. Sorry I left that out.

Received on Thursday, 22 April 2010 18:00:52 UTC