#1068: CSS Values and Units: sibling-count() and sibling-index()

Visit on Github.

Opened Mar 17, 2025

こんにちは TAG-さん!

I'm requesting a TAG review of CSS Values and Units: sibling-count() and sibling-index().

The CSS Values and Units Module Level 5 introduces tree counting functions, specifically sibling-index() and sibling-count(). These functions can be used as <integer> values directly or combined with other values in calc() expressions. The sibling-index() and sibling-count() functions evaluate to integers at computed value time based on the flat tree position of the element.

Further details:

You should also know that there are open issues to extend tree-counting functions:

Discussions