[csswg-drafts] [css-values] Extend sibling-index() and sibling-count() with a selector argument (#9572)

Loirooriol has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-values] Extend sibling-index() and sibling-count() with a selector argument ==
https://drafts.csswg.org/css-values-5/#tree-counting

So `sibling-count(<selector>)` would count the number of inclusive siblings that match the selector.

And `sibling-index(<selector>)` would provide the index of the element among its inclusive siblings that match the selector. If the element doesn't match the selector, I guess this could be zero? Or maybe become invalid at computed-value time or something.

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/9572 using your GitHub account


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

Received on Wednesday, 8 November 2023 14:20:01 UTC