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-4-selectors] Still no :Parent selector? #943

Closed
Nodws opened this issue Jan 16, 2017 · 4 comments
Closed

[css-4-selectors] Still no :Parent selector? #943

Nodws opened this issue Jan 16, 2017 · 4 comments

Comments

@Nodws
Copy link

Nodws commented Jan 16, 2017

cmon people we want to stop using js for this simple query

Of course :has() is troublesome

@SebastianZ
Copy link
Contributor

See the :has() pseudo-class.

Sebastian

@inoas
Copy link

inoas commented Jan 16, 2017

:has really looks good as it doesn't traverse the tree up. Unidirectional traversal is really a good design choice in CSS.

@inoas
Copy link

inoas commented Jan 18, 2017

Looking for the day :has reports green on http://caniuse.com/#search=%3Ahas

@tabatkins
Copy link
Member

:has() is equally as problematic, from a perf perspective, as "parent" selectors. This is why :has() is marked as part of the static profile - it's explicitly not allowed in stylesheets.

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

No branches or pull requests

4 participants