[Webkit-unassigned] [Bug 232261] New: ::part(foo) selector does select elements inside shadow roots
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Oct 25 12:51:19 PDT 2021
https://bugs.webkit.org/show_bug.cgi?id=232261
Bug ID: 232261
Summary: ::part(foo) selector does select elements inside
shadow roots
Product: WebKit
Version: Safari Technology Preview
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: CSS
Assignee: webkit-unassigned at lists.webkit.org
Reporter: nlawson at salesforce.com
Using CSS like:
::part(foo) {
color: blue;
}
Or:
:host::part(foo) {
color: blue;
}
...does not work inside of shadow roots to select CSS shadow parts.
Here are two examples to demonstrate:
- https://codepen.io/nolanlawson-the-selector/pen/GRjxEYZ
- https://codepen.io/nolanlawson-the-selector/pen/jOLBxad
These two examples work in Firefox v93 (i.e. the font color is blue), but not Safari Tech Preview 15.4 release 133.
Incidentally, Chrome also fails this test, and there is a Chrome bug already open: https://crbug.com/980506
--
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/20211025/3f65521e/attachment.htm>
More information about the webkit-unassigned
mailing list