-
Notifications
You must be signed in to change notification settings - Fork 14
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
:parent, :next and :prev specificity and necessity? #14
Comments
Hi @adrianhelvik! Thanks for the questions/suggestions.
This wasn't defined in the spec, but for implementations of this spec out there in the wild it's been implemented as an attribute selector (the lowest we can create a unique identifier for CSS) so something like Though an attribute selector is the weakest selector we can create, that still gives authors a nice range of specificity they can create, consider how
I would say that when you're dealing with the idea of 'scoped CSS', defining those direct relationships:
That could be, I've already cut some things out of this proposal like I'm part of the WICG effort that is trying to brainstorm something to propose for container queries. Whatever we come up with there likely won't include things like If you'd like to help with the WICG in coming up with a Use Cases & Requirements document, or the specification we come up with after that, feel free to check out either of these repositories and their issues: That's where the current work relating to this topic is taking place, and with a much larger group of people :D |
First of all: I love the proposal!
One thing that I couldn't figure out is what specificity :parent, :next and :prev have.
I am also wondering wether they are needed. :parent is by far the most useful of them, but the only one you'd really need is :self.
Overall it feels like these selectors should be in a separate proposal.
I am only commenting this because I love the proposal and hope it will be accepted. Additional complexity could prevent that.
The text was updated successfully, but these errors were encountered: