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

On Wed, Apr 23, 2014 at 5:08 PM, Zack Weinberg <zackw@panix.com> wrote:
> But it is then also necessary to decide on the behavior of -Inf and
> NaN as the final result.  -Inf logically becomes the most negative
> allowed value (which in many cases will be 0), but I'm going to
> suggest that NaN be treated as *positive* infinity to raise the odds
> that someone will notice the math error.

Treating NaN as +Inf was my thought as well.

>> * We'll allow unit powers other than 1/0/-1.
>
> So, calc(1px * 2px / 3px) is valid then?  That's probably most
> convenient for authors.

Yup.

> Also, given what Matt Rakow said earlier today, I think the inverse
> length stuff should be dropped.

Yeah, makes sense.  The <time>/<frequency> stuff should be kept, though.

~TJ

Received on Thursday, 24 April 2014 00:49:46 UTC