- From: Christoph Päper via GitHub <sysbot+gh@w3.org>
- Date: Tue, 29 Oct 2024 10:55:38 +0000
- To: public-css-archive@w3.org
Would negative indices count from the end of the list? What would index `0` return then? I’ve expressed a preference for a unified _select by index_ function before. I’m still in favor of it, but overall it’s just syntax details. ~~~~ ebnf select( random | <integer> , [ <declaration-value>? ]# ) ~~~~ If this also supported _select by key_, we’d basically have a switch construct without fallthrough behavior. ~~~~ ebnf select( random | <integer> | <string> , [ [<string> :]? <declaration-value>? ]# ) ~~~~ -- GitHub Notification of comment by Crissov Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/11103#issuecomment-2443888354 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Tuesday, 29 October 2024 10:55:39 UTC