- From: CSS Meeting Bot via GitHub <sysbot+gh@w3.org>
- Date: Tue, 01 Apr 2025 20:16:33 +0000
- To: public-css-archive@w3.org
The CSS Working Group just discussed `[css-values-5] Introduce nth-item()`, and agreed to the following: * `RESOLVED: Add an nth-item() function. Cycling TBD` <details><summary>The full IRC log of that discussion</summary> <fantasai> TabAtkins: we already accepted random-item() function, which takes a list and resolves to an item in the list randomly<br> <fantasai> TabAtkins: proposal is to pair this with nth-item(), which is the same, but not random -- you give an index into the list<br> <fantasai> TabAtkins: This allows you to have sets of properties controlled by a single variable<br> <fantasai> TabAtkins: among othe things<br> <fantasai> TabAtkins: Now that we have numerical comparisons, this could be done with if()<br> <fantasai> TabAtkins: But nth-item() seems useful as a smaller syntax, and because it's directly analogous to random-item()<br> <kizu> +n to this<br> <lea> +n from me too :D<br> <miriam> +1<br> <TabAtkins> `random-item(fixed .1, a, b, c, d)` returns the first one, for example<br> <miriam> +foo<br> <fantasai> astearns: objections?<br> <fantasai> lea: Does it cycle?<br> <fantasai> fantasai: good question<br> <fantasai> RESOLVED: Add an nth-item() function. Cycling TBD<br> </details> -- GitHub Notification of comment by css-meeting-bot Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/11103#issuecomment-2770582816 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Tuesday, 1 April 2025 20:16:34 UTC