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
So technically, things like :host-context(:is(.foo .bar *)) should be allowed, even though they currently are not in implementations and I guess should not be. Am I missing something or do these grammars need fixing? Perhaps we need a <restricted-compound-selector> or something?
But I will say, if the perf requirements are still valid, then we should switch to a production that explicitly prohibits pseudo-classes from containing complex selectors. If they're not, then we should stop pretending there's a restriction, and just relax it to <selector>.
Currently there are various specs that restrict selector arguments to
<compound-selector>
for performance reasons. E.g.:host
and:host-context()
.However, given how
<compound-selector>
is defined, things like:is(.foo .bar *)
or:not(.foo .bar *)
still match its grammar:So technically, things like
:host-context(:is(.foo .bar *))
should be allowed, even though they currently are not in implementations and I guess should not be. Am I missing something or do these grammars need fixing? Perhaps we need a<restricted-compound-selector>
or something?cc @tabatkins
The text was updated successfully, but these errors were encountered: