[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 09:15:22 PST 2021


https://bugs.webkit.org/show_bug.cgi?id=233380

--- Comment #2 from Andrei Anischevici <andrei002 at gmail.com> ---
(In reply to Ryosuke Niwa from comment #1)
> As mentioned in Mozilla bug, this seems working as intended. If this
> behavior is desirable, perhaps you need to open a spec issue for CSS WG.

As I also mentioned in the Mozilla bug, this is not working as intended and the comment with which that bug was initially resolved does not apply, as we're not crossing the shadow boundary with a single selector, but instead doing the selection from the shadow root node, which is expected to be working, similarly to how it's working for the document root node. That ticket has since been reopened and being looked into.

As I also noted, this is working properly in Chrome and it is indeed a bug in Mozilla and WebKit, as there's no way of selecting direct descendants of the shadow root, other than parsing the selector and manually matching each shadow root child.

-- 
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/98be8963/attachment.htm>


More information about the webkit-unassigned mailing list