You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
CSS Values and Units: sibling-count() and sibling-index() #1194
CSS Values and Units Level 5 adds two tree-counting functions sibling-count() and sibling-index() which evaluate to integers at computed value time based on flat tree positions of the element we are computing styles for. These functions can be used where-ever integer values are allowed in property declarations.
Reacted by astrit, Sebastian Zartner, Oliver Williams, Vladimir Agafonov, bbb651 🇮🇱, jsnkuhn, Marko Vujanic, Rami Yushuvaev, Yisi, Nate Moore and 5 more
Activity
jakearchibald commentedon Aug 11, 2025
I think we should be positive on this. It's a relatively small feature. The naming seems good. Developers want it.
SebastianZ commentedon Aug 11, 2025
FWIW, the bug related to this is https://bugzilla.mozilla.org/show_bug.cgi?id=1953973.
Sebastian