standards-positions icon indicating copy to clipboard operation
standards-positions copied to clipboard

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

Open lilles opened this issue 7 months ago • 1 comments

WebKittens

No response

Title of the proposal

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

URL to the spec

https://drafts.csswg.org/css-values-5/#tree-counting

URL to the spec's repository

No response

Issue Tracker URL

No response

Explainer URL

https://github.com/w3c/csswg-drafts/blob/main/css-values-5/tree-counting-explainer.md

TAG Design Review URL

No response

Mozilla standards-positions issue URL

No response

WebKit Bugzilla URL

No response

Radar URL

No response

Description

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.

lilles avatar Mar 17 '25 11:03 lilles