- From: Christoph Päper via GitHub <sysbot+gh@w3.org>
- Date: Tue, 22 Oct 2024 20:05:08 +0000
- To: public-css-archive@w3.org
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