[Webkit-unassigned] [Bug 285130] New: insertRule` dose not work for inserting @scope styles

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Dec 24 05:50:18 PST 2024


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

            Bug ID: 285130
           Summary: insertRule` dose not work for inserting @scope styles
           Product: WebKit
           Version: Safari Technology Preview
          Hardware: Mac (Apple Silicon)
                OS: macOS 15
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: New Bugs
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: haoyang512 at hotmail.com

```html
<div>
  <style id="target">
    div {
      height:100px;
      width: 100px;
    }
  </style>
  <div id="rect"></div>
  <script>document.getElementById('target').sheet.insertRule(`@scope{#rect{background:pink}}`)</script>

```

Chrome: show pink rect
Safari 18.1: blank
Safari Release 209 (Safari 18.2, WebKit 20621.1.6): blank

-- 
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/20241224/0f1e168f/attachment.htm>


More information about the webkit-unassigned mailing list