Re: [csswg-drafts] [cssom] Is `round` special in CSSOM? (#5689)

Fantasai and I agree that CSSOM could use some clarity, and that it should match the behavior of JS and the rest of CSS (in `calc()` rounding, animation rounding, and the default behavior of `round()`) in rounding X.5 values toward positive infinity. So we added a definition for “round to the nearest integer” to make it easy to reference (and said that it applies “unless otherwise specified” so that anywhere that doesn't mention it gets this behavior by default).

Specs that aren't doing anything special should be able to just refer to V&U: either use an `<integer>` in the grammar (so you get the correct rounding for free), or ref the new "round to the nearest integer" definition.

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


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

Received on Thursday, 21 October 2021 21:38:47 UTC