- From: Christoph Päper via GitHub <sysbot+gh@w3.org>
- Date: Sun, 18 Jun 2023 10:15:29 +0000
- To: public-css-archive@w3.org
It’s what @tabatkins said: > Exposing a way to access the sibling index of an element is theoretically possible, but would need to be done directly via some new function. ~~~~ css dt::after { content: concat("I’m the ", n, "th of ", cousins, " elements, but the ", m ,"th of ", siblings, " defined terms."); } ~~~~ … assuming a `calc()`-like string function. Otherwise, I assume `var()` could be reused: ~~~~ css dt::after { content: "I’m the " var(n) "th of " var(cousins) " elements, but the " var(m) "th of " var(siblings) " defined terms."; } ~~~~ -- GitHub Notification of comment by Crissov Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/8981#issuecomment-1596085752 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Sunday, 18 June 2023 10:15:30 UTC