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

@Que-tin Being based on layout would be circular, see https://wiki.csswg.org/faq#selectors-that-depend-on-layout

But `sibling-index(:not(.skip))` might provide you the index skipping elements that have the class `skip`.

Pseudo-elements should probably be considered to have index 0 or -1 or something invalid.

-- 
GitHub Notification of comment by Loirooriol
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4559#issuecomment-1644117477 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 15:17:09 UTC