Re: [csswg-drafts] [css-values] Proposal: add sibling-count() and sibling-index() (#4559)

How will / should `sibling-count()` and `sibling-index()` in combination with `display: contents`? I guess the element it self will still be counted as a sibling as of now right? What is the solution if I don't want the `sibling-index()` but the _layout index_ like on children of an element with  `display: contents`.
Also what would be the value of both functions when used on a pseudo-elements? Will the value be equal to the result of the parent or will they be counted as children inside of the element and therefore increase the index / count?

-- 
GitHub Notification of comment by Que-tin
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4559#issuecomment-1644051084 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Thursday, 20 July 2023 14:41:02 UTC