-
Notifications
You must be signed in to change notification settings - Fork 637
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
[selectors-4] :is()
and :where()
not allowed inside :not()
?
#9038
Comments
It seems to be a known pitfall of |
So this usage is not supported due to performance consideration? But you can already stack a lot of Does the argument come down to "we won't make it easier to hang yourself"? |
If I understod the problem correctly, it's supported, it just doesn't do what many could expect from it 😕
To select content of |
The problem I'm referring to, is using Not using I understand that the proposed/upcoming |
It seems that your problem boils down to expecting |
That's not the case. I think you're misunderstanding the problem.
I have no confusion on what your example selector here is doing, it's simply not related to the problem I'm having. Please refer back to my original example:
I expect it to be the equivalent of
But it actually became
That's the central problem. How did |
|
Ah.... I think I see it now. The problem is that Sorry about not getting it until now, this is a bit of a brain twister for me. |
BTW, it seems that what you actually want is a scoping limit. Something like @scope (.select) to (.deselect) {
* { /* ... */ }
} |
Yes that's exactly what I want, I'm trying to MacGyver a rudimentary version of
Yes, it doesn't support infinite nesting, but realstically you won't be nesting more than one or two times anyways so it's enough for my needs. Of course, actual |
Just looking for clarification.
I find that selector such as
.select *:not(.select :is(.deselect, .deselect *))
gets parsed as
.select *:not(.select .deselect, .deselect *)
instead of.select *:not(.select .deselect, .select .deselect *)
in both Chrome and Firefox (figured out using trial and error).
Is this because this usage is not supported?
Edit:
To clarify the problem,
:not(.a :is(.b, .b *))
behaves like:not(.a .b, .b *)
instead of:not(.a .b, .a .b *)
.Where did the
.a
in.a .b *
go?The text was updated successfully, but these errors were encountered: