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

Re: [cssom] CSS Value API

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Tue, 06 Apr 2010 09:39:18 -0400
Message-ID: <4BBB3986.6000501@mit.edu>
To: Anne van Kesteren <annevk@opera.com>
CC: "www-style@w3.org" <www-style@w3.org>
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 GMT

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