- From: Lorin Halpert via GitHub <sysbot+gh@w3.org>
- Date: Tue, 12 Nov 2024 22:16:24 +0000
- To: public-css-archive@w3.org
> @tomasdev See #8981, "We cannot make values dependent on what kind of selector they were applied with". However, in this case you could use `animation-delay: calc(sibling-index() * 20ms);` which is already in the [spec](https://drafts.csswg.org/css-values-5/#tree-counting). Thanks for the update re: `sibling-index()` @Loirooriol! This would permit me to achieve my intended use showcased in my [2022 comment above](https://github.com/w3c/csswg-drafts/issues/1026#issuecomment-1247631054). Hope to see it implemented in the future. When used along with `sibling-count()` it can generate a sort of seed based randomness can be used artistically (confetti, etc)... although I hope it works on `#foo::before{content:''}` elements! -- GitHub Notification of comment by alystair Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1026#issuecomment-2471695750 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Tuesday, 12 November 2024 22:16:25 UTC