Re: [cssom] CSS Value API

On 4/6/10 6:28 AM, Anne van Kesteren wrote:
> A value implements all the various component interfaces it supports.
> E.g. 'width' takes both <length> and <percentage> so value objects for
> it will support both the length and percentage component interfaces.

And throws if the "wrong" one is accessed?

> ele.style.margin.l[0].px++ // increases the px value of the first item

So of margin-top?  What if it was set to "15%"?  Throw?

-Boris

Received on Tuesday, 6 April 2010 13:39:54 UTC