[Webkit-unassigned] [Bug 255282] New: CSS Variables not applied to SVGUseElement when href is external

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Apr 11 06:00:13 PDT 2023


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

            Bug ID: 255282
           Summary: CSS Variables not applied to SVGUseElement when href
                    is external
           Product: WebKit
           Version: Safari 16
          Hardware: Mac (Intel)
                OS: macOS 13
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: SVG
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: robinneal429 at gmail.com
                CC: sabouhallawa at apple.com, zimmermann at kde.org

Since Safari 16.4, CSS Variables defined on the SVGUseElement are no longer applied to the used SVG element.


Here is an isolated test case:
https://4z5y4g-3000.csb.app

In Chrome, Firefox, and older versions of Safari, the first icon should be red, and all other icons blue.

In Safari 16.4, the last two icons are black.

The icons stroke colour is set via a CSS variable, `--icon-stroke-color`. It is set to fallback to black.

This still works when the use[href] target is an element on the same page. The issue only occurs with external sources. This is regardless of whether the file is hosted on the same domain, or a different domain. Relative paths and absolute paths both produce the same issue.

-- 
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/20230411/9ecdc023/attachment.htm>


More information about the webkit-unassigned mailing list