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
{{ message }}
Repository navigation
[css-cascade-6] Disallow pseudo-elements in @scope's prelude #7382
I think we should make it a parse error to use pseudo-element selectors in @scope's prelude (like we already do for e.g. :is/:where). It's a significant engineering effort to support properly, and it doesn't seem very useful. You could reference the pseudo-scoping-root itself with :scope, but not much else.
We should disallow it, at least until there is a point in allowing it.
changed the title [-][css-cascade-6] Disallow pseudo-elements in @scope[/-][+][css-cascade-6] Disallow pseudo-elements in @scope's prelude[/+]on Jun 17, 2022
Activity
[-][css-cascade-6] Disallow pseudo-elements in @scope[/-][+][css-cascade-6] Disallow pseudo-elements in @scope's prelude[/+]tabatkins commentedon Jun 17, 2022
Yeah this restriction makes sense.
mirisuzanne commentedon Jan 27, 2023
I agree this makes sense. Could we consider that an 'obvious bugfix', or should we bring it up for (maybe async) resolution?
tabatkins commentedon Jan 27, 2023
Obvious bugfix, imo.
[css-cascade-6] Disallow pseudo-elements in @scope prelude
[css-cascade-6] Disallow pseudo-elements in @scope prelude
[css-cascade-6] Disallow pseudo-elements in @scope prelude (#8461)