You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Loirooriol
changed the title
[css-nesting][css-selectors] Behavior of & with a default namespace?
[css-nesting][selectors] Behavior of & with a default namespace?
Jan 17, 2024
I agree, & should prevent the default namespace from applying. It falls under the general rule that dbaron describes, as I summarized in #9804 (comment). This would have to be handled via explicit spec text, as it wouldn't be caught by my proposed general rule there.
Uh oh!
There was an error while loading. Please reload this page.
https://drafts.csswg.org/selectors/#type-nmsp
https://drafts.csswg.org/css-nesting/#nest-selector defines a
&
selector (which is not a type selector).Then, consider
&:hover
has no type selector, so as per Selectors, it won't match asvg|a:hover
. That's how Gecko, Blink and WebKit behave.But I think it's supposed to match to be consistent with what @tabatkins is saying in #5684 and #9804
Possibly, Selectors should say something like
The text was updated successfully, but these errors were encountered: