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

Re: [cssom] CSS Value API

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Wed, 07 Apr 2010 09:34:35 -0400
Message-ID: <4BBC89EB.4000600@mit.edu>
To: Anne van Kesteren <annevk@opera.com>
CC: "www-style@w3.org" <www-style@w3.org>
On 4/7/10 5:08 AM, Anne van Kesteren wrote:
>> And throws if the "wrong" one is accessed?
> I think when it can be converted we should allow for that.


>>> 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?
> Why should it throw?

Well, what should it do if it doesn't throw?

> The idea is that it sets the first value of the shorthand

That's fine.  My specific question is:

   <div id="x" style="margin-top: 15%">
     // What just happened in the line above?

Received on Wednesday, 7 April 2010 13:35:11 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:38:33 UTC