web-feature: sibling-count() and sibling-index()

baseline logo Widely available

The sibling-count() and sibling-index() CSS functions return integers that are useful to style elements based on their positions among siblings or on the number of siblings, for example as part of a calc() expression.