[Webkit-unassigned] [Bug 233380] CSS :scope pseudo selector doesn't work in shadowRoot.querySelectorAll

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Nov 20 12:21:29 PST 2021


--- Comment #7 from Emilio Cobos Álvarez (:emilio) <emilio at crisal.io> ---
I'll go through this and the relevant Firefox bug next Monday, but in any case a document fragment never matches any selector. In the context of a shadow tree only :host can match the shadow host, and it is a featureless element so it should not match scope.

It could match :host(:scope) though, maybe... I haven't checked whether that works in any browser.

You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20211120/65eaffc7/attachment.htm>

More information about the webkit-unassigned mailing list