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

Re: [css-values] Concrete proposal for unit algebra in calc()

From: Simon Sapin <simon.sapin@exyr.org>
Date: Thu, 24 Apr 2014 16:39:23 +0100
Message-ID: <5359302B.2080204@exyr.org>
To: "Tab Atkins Jr." <jackalmage@gmail.com>
CC: Zack Weinberg <zackw@panix.com>, www-style list <www-style@w3.org>
On 24/04/2014 16:03, Tab Atkins Jr. wrote:
> (Though, note the slight complication that a calc() should probably be
> allowed to resolve to a non-recognized unit *if it's nested inside
> another calc()*, since "calc(1 + calc(2 + 3))" is basically identical
> to "calc(1 + (2 + 3))".)

I suppose we could fix this by defining nested calc() to be exactly 
equivalent to parentheses.

-- 
Simon Sapin
Received on Thursday, 24 April 2014 15:39:47 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:39:21 UTC