-
Notifications
You must be signed in to change notification settings - Fork 7
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
Features Missing From CSS: Parent selector vs :has()
#17
Comments
Is there a proposal for a different parent selector in the works? If not I think we might as well consider that I think it probably boils down to what we can replace it with, and since I can't think of much else right now I feel like we might end up leaving it in? Same issue with containment queries really… |
|
https://drafts.csswg.org/selectors/#relational says that Ultimately I think we should ask about I would be interested to see whether "parent selector" would still be a popular choice for this question if we kept it, but keeping doesn't make a whole lot of sense. |
I don't recall every detail of the relevant discussions, but I seem to remember that even without nesting, Regardless, I agree that it probably doesn't make sense to use the term "parent selector" anywhere, unless what we are trying to measure is how many people have realized that |
@LeaVerou can you also add the "already in survey" label? |
I guess that's the point. I just had the case today that I told someone about Sebastian |
:has()
Perhaps we could just rename "Parent selector" to "Parent selector / |
Renaming to put |
If @LeaVerou's altered survey questions are adopted, this will rather be part of unusable features due to little browser support. Sebastian |
Changing tags, since this does have an action item attached to it: Rename to "Parent selector / |
The name of the feature will just be |
What kind of confusion would something like "(aka Parent selector)" add? |
"aka" sounds good, that conveys that it isn't the canonical name of the feature. |
I am fine with that if there's a one-line explanation below it saying that it covers the use case of a parent selector and others. Sebastian |
I'd like to keep and tweak this question for 2021:
https://2021.stateofcss.com/en-US/opinions/#currently_missing_from_css_wins
Parent Selector is a tricky one, because there's now
:has()
, but it's different from the imagined parent selector as the reverse of the child selector. Options that I can see::has()
:has()
meet the use cases you wanted parent selectors for?" (other question)The text was updated successfully, but these errors were encountered: