Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
sesse opened this issue Nov 18, 2024 · 1 comment

Comments

@sesse
Copy link
Contributor

sesse commented Nov 18, 2024

sibling-index() (and its sibling, sibling-count()) does not seem to have defined behavior if there's no originating 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.)

@Loirooriol
Copy link
Contributor

I don't think we should defer to the ultimate originating element at all, see #9573

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

No branches or pull requests

3 participants