Re: [csswg-drafts] [css-values] Proposal: `round()` to a finite scale (#11067)

> the closest available value even if it is higher than the target

I disagree, disobeying the rounding strategy seems very unexpected.

> I'd say NaN. Infinitely small or large numbers are unexpected in the given use cases.

The advantage of infinities is that then you can use a min/max/clamp wrapper to set the right limits. Though we could require the author to explicitly add infinities into the list in order to avoid NaN.

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


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

Received on Tuesday, 22 October 2024 19:17:13 UTC