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

I’m not at all against solving this use case. Maybe `round()` is indeed the best place to do so. 

In [#2826 re `random()`](https://github.com/w3c/csswg-drafts/issues/2826#issuecomment-1405729740), I suggested a function called `choose()` or `select()` to get a single item from a list, but this focused on choosing by *index* and       did not consider choosing by *value*. However, I think that feature could be added therein just as well. 
<!--(Contrarily, [`med()`, `mid()` and `mod()` in #](https://github.com/w3c/csswg-drafts/issues/) naturally considered *only* the list values, i.e. they supported no needle to compare with.)-->

-- 
GitHub Notification of comment by Crissov
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/11067#issuecomment-2430151013 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 20:05:09 UTC