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

Comments

Projects
None yet
2 participants
@nex3
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

This comment has been minimized.

Contributor

nex3 commented Feb 20, 2014

This will require deprecating the existing support for !.

@chriseppstein

This comment has been minimized.

Member

chriseppstein commented Feb 24, 2014

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

@nex3

This comment has been minimized.

Contributor

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.

@chriseppstein chriseppstein reopened this Feb 25, 2014

@nex3 nex3 added this to the 3.4 milestone Jul 11, 2014

nex3 added a commit that referenced this issue Jul 12, 2014

@nex3 nex3 closed this Jul 12, 2014

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