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

On Thu, Apr 24, 2014 at 5:21 AM, Simon Sapin <> wrote:
> On 24/04/2014 00:56, Tab Atkins Jr. wrote:
>> * We'll allow unit powers other than 1/0/-1.
> That’s only for intermediate expressions, right? The overall calc()
> expression still needs to have a single "base" unit, if only to type-check
> wherever it’s used.

Yes, the final unit has to be a recognized one.

(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))".)


Received on Thursday, 24 April 2014 15:04:24 UTC