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

> So, round(1em + 10px) would still be invalid. Only round(2.3em), round(42.8deg), or round(87.39%) would be valid (being equivalent to round(2.3em, 1em), round(42.8deg, 1deg), and round(87.39%, 1%), respectively).

That's pretty fragile, and it means that `round(var(--foo))` may or may not be valid, and might round to an unpredictable precision, based on how the value is written somewhere else.

And `round(10em / 3)`? Either that's invalid *too* (and the entire feature starts getting *super* fragile), or we have to rewrite the simplification rules to maintain units as-is when possible.

In-flight edit: lol, @jfkthame makes the exact same points.

---------

Anyway, if impls want to change the defaulting rules to allow a default of `1` for B, I'm fine with that. Agenda+ to discuss it.

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


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

Received on Wednesday, 6 December 2023 21:59:11 UTC