Skip to content

[css-values-5] What does sibling-index()/sibling-count() return if there's no element? #11232

Closed as duplicate of#10982
@sesse

Description

@sesse

sibling-index() (and its sibling, sibling-count()) does not seem to have defined behavior if there's no element, e.g. in a media query. What should the behavior here be? (Returning 0 would be fine by us, if you just want to pick something arbitrary.)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions