[csswg-drafts] [css-values] Let B default to 1 in `round(<strategy>?, A, B)` (#9668)

Loirooriol has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-values] Let B default to 1 in `round(<strategy>?, A, B)` ==
I get the reasoning for requiring a precision in most cases. However, as I mentioned in https://github.com/w3c/csswg-drafts/issues/2513#issuecomment-565426050, it seems fine to omit it for numbers.

So if B becomes optional, defaulting to 1, it will be possible to do things like
```css
round(2.3) /* 2 */
round(up, 2.3) /* 3 */
```
while `round(2.3em)` will continue being invalid due to the type mismatch between A and B.

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/9668 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Saturday, 2 December 2023 01:09:06 UTC