[Webkit-unassigned] [Bug 174977] New: [Shadow DOM] Use elements not resolved when SVG is nested in shadow root

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Jul 31 01:01:32 PDT 2017


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

            Bug ID: 174977
           Summary: [Shadow DOM] Use elements not resolved when SVG is
                    nested in shadow root
           Product: WebKit
           Version: Safari 10
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Critical
          Priority: P2
         Component: SVG
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: fabian.schwarzkopf at yworks.com
                CC: zimmermann at kde.org

Created attachment 316759

  --> https://bugs.webkit.org/attachment.cgi?id=316759&action=review

Reproduction of unresolved SVG use element in shadow DOM

If an SVG is nested in a shadow root, use elements which reference a defs element via href="#id" are not resolved.

See attachment for a simple reproduce. Tested on macOS Sierra (10.12.5), Safari 10.1.1 and Safari Technology Preview Release 36.

Once the SVG is moved outside of the shadow root (select the SVG element in the developer tools, document.body.appendChild($0)), the use element is resolved correctly. 
If the SVG is nested in more than one shadow root, the problem persists on each level where the SVG is still in a shadow root, i.e. moving it up one level does not resolve the problem.

Defs elements that are used with url(#id) work as expected, e.g. referencing fills.

-- 
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/20170731/095f0a26/attachment-0001.html>


More information about the webkit-unassigned mailing list