[Webkit-unassigned] [Bug 232402] New: :empty selector matches elements with a shadow root
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Oct 27 14:04:23 PDT 2021
https://bugs.webkit.org/show_bug.cgi?id=232402
Bug ID: 232402
Summary: :empty selector matches elements with a shadow root
Product: WebKit
Version: Safari 15
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: CSS
Assignee: webkit-unassigned at lists.webkit.org
Reporter: luke at warlow.dev
Steps to reproduce:
Go to https://jsfiddle.net/hyjfkwqx/
You should see there is no output.
Actual results:
The :empty selector matches an element with an open shadow root that itself has child elements. So the parent div is not displayed.
Expected results:
I would expect the :empty selector to not match these elements. So I would expect to see a red square with a smaller blue square in it.
--
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/20211027/a1e00335/attachment.htm>
More information about the webkit-unassigned
mailing list