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

Add support for :has() #1126

Closed
nex3 opened this issue Feb 20, 2014 · 3 comments
Closed

Add support for :has() #1126

nex3 opened this issue Feb 20, 2014 · 3 comments
Labels
CSS compatibility Support the CSS spec requires deprecation Blocked on a deprecation cycle
Milestone

Comments

@nex3
Copy link
Contributor

nex3 commented Feb 20, 2014

As of 19 February, the CSS working group has decided to move away from ! and towards :has() for indicating subject selectors. Sass should support this.

Based on the discussion linked above, it looks like the syntax will be E:has(F), where F can be any arbitrary selector, including one starting with a combinator (e.g. E:has(> F)).

@nex3
Copy link
Contributor Author

nex3 commented Feb 20, 2014

This will require deprecating the existing support for !.

@chriseppstein
Copy link

I really like the ! syntax. What about just compiling it to the :has(...) syntax?

@nex3
Copy link
Contributor Author

nex3 commented Feb 24, 2014

I don't think there's enough syntactic benefit to justify the conceptual overhead of doing it in a different way than CSS. Plus it runs a serious risk of stepping on the toes of a future CSS feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CSS compatibility Support the CSS spec requires deprecation Blocked on a deprecation cycle
Projects
None yet
Development

No branches or pull requests

2 participants