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
I just realized that WebKit (but not Blink nor Gecko) parse the following selector as valid:
:host(::before)
(or :host(::before)::before for that matter).
I was going to file a WebKit bug, but then realized that the grammar technically allows it. This also applies to the grammar of :is / :where (old :matches) etc.
I think that's wrong and pseudo-elements should not be allowed in nested selectors. WebKit itself doesn't parse, e.g., :not(::before), so they're not consistent about it.
The text was updated successfully, but these errors were encountered:
emilio
changed the title
The grammar for :host() and other compound-selector-taking things should forbid pseudo-element
[selectors] The grammar for :host() and other compound-selector-taking things should forbid pseudo-element
May 24, 2019
emilio
changed the title
[selectors] The grammar for :host() and other compound-selector-taking things should forbid pseudo-element
[selectors] The grammar for :host() and other compound-selector-taking things should probably forbid pseudo-elements
May 24, 2019
I just realized that WebKit (but not Blink nor Gecko) parse the following selector as valid:
(or
:host(::before)::before
for that matter).I was going to file a WebKit bug, but then realized that the grammar technically allows it. This also applies to the grammar of
:is
/:where
(old:matches
) etc.I think that's wrong and pseudo-elements should not be allowed in nested selectors. WebKit itself doesn't parse, e.g.,
:not(::before)
, so they're not consistent about it.The text was updated successfully, but these errors were encountered: