Skip to content

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

Closed

Description

@lilles

Specification title

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

Specification or proposal URL (if available)

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

Explainer URL (if available)

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

Proposal author(s)

No response

MDN URL

No response

Caniuse.com URL

No response

Bugzilla URL

No response

Mozillians who can provide input

No response

WebKit standards-position

No response

Other information

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.

Activity

  1. moved this from Unscreened to Needs assignees in standards-positions reviewon Mar 31, 2025
  2. moved this from Needs assignees to Needs proposed position in standards-positions reviewon Mar 31, 2025
  3. jakearchibald commented on Aug 11, 2025

    @jakearchibald
    Member

    I think we should be positive on this. It's a relatively small feature. The naming seems good. Developers want it.

  4. moved this from Needs proposed position to Position is proposed in standards-positions reviewon Aug 11, 2025
  5. SebastianZ commented on Aug 11, 2025

    @SebastianZ
    Contributor

    FWIW, the bug related to this is https://bugzilla.mozilla.org/show_bug.cgi?id=1953973.

    Sebastian

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Fields

Priority

None yet

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions