Re: [csswg-drafts] [css-values] Allow sqrt(<length-percentage>) (#3764)

I donʼt feel strongly about this and understand the surprising effects it would have. It was a weak attempt to justify more convenience functions like `cbrt()`. (`squared(A)` is actually longer than `pow(A, 2)`, but more readable in some cases.)

Why would `pow(-8, 1/3)` ever return NaN? JS is strange. CSS should not copy the strangeness.

As for transformation matrices equivalent to `translation(var(--aLength))`, I now realize that `calc(var(--aLength) / 1px)` would have sufficed to get a number that is really pixels. 

-- 
GitHub Notification of comment by Crissov
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3764#issuecomment-476870521 using your GitHub account

Received on Tuesday, 26 March 2019 22:02:27 UTC