Skip to content

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

@lilles

Description

@lilles

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions