Re: [csswg-drafts] [css-values] Trigonometric functions (#2331)

@jonathantneal this from https://github.com/w3c/csswg-drafts/issues/2331#issuecomment-468473201:

> With a comma:

```css
width: pow(2%, 4);

/* becomes */

width: 16%;
```

disturbs me from a mathematical point of view. Isn't `pow(2%, 4)` the same as `pow(0.02, 4)` which evaluates to `0.00000016` or `0.000016%`?

Is there a consensus that for `%` values the number before the `%` is subjected to the calculation as though it were unit-less and then the `%` is added back on again at the end? That seems weird to me...

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

Received on Friday, 1 March 2019 11:17:02 UTC