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

Re: [cssom] CSS Value API

From: Anne van Kesteren <annevk@opera.com>
Date: Wed, 07 Apr 2010 18:02:41 +0200
To: "Boris Zbarsky" <bzbarsky@mit.edu>, Fran├žois REMY <fremycompany_pub@yahoo.fr>
Cc: www-style@w3.org
Message-ID: <op.vasuurat64w2qv@annevk-t60>
On Wed, 07 Apr 2010 17:50:45 +0200, Fran├žois REMY  
<fremycompany_pub@yahoo.fr> wrote:
> To be logical, we should modify margin-top to calc(15%+1px).
> Or is that no more allowed by CSS-Values?

For some definition of logical that is certainly an interesting idea. It  
would however completely break the getter/setter symmetry of "px". I  
personally value that a little higher.

Whatever API we come up with for calc() could potentially address this  
case though. Including something like taking the current value and  
performing some kind of operation on it.


-- 
Anne van Kesteren
http://annevankesteren.nl/
Received on Wednesday, 7 April 2010 16:03:31 GMT

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