[Webkit-unassigned] [Bug 229438] New: Incorrect specificity with ::slotted

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Aug 24 00:23:42 PDT 2021


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

            Bug ID: 229438
           Summary: Incorrect specificity with ::slotted
           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: jeroen.zwartepoorte at gmail.com

https://codepen.io/jpzwarte/pen/oNwNdpN?editors=0110

In Chromium and Firefox, the background is hotpink. In Safari and STP, the background is green.

This is the CSS for the web component:
```css
      :host([foo]) ::slotted(h1) {
        --background: hotpink;
      }
      ::slotted(h1) {
        --background: green;
      }

```

-- 
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/20210824/7166bb19/attachment-0001.htm>


More information about the webkit-unassigned mailing list