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

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Aug 4 01:30:20 PDT 2017


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

--- Comment #6 from Sebastian Müller <seb.p.mueller at gmail.com> ---
While I understand that it may be difficult to deal with references that cross shadow-dom boundaries, I don't see how a "self-contained" SVG should leave anything to be discussed or even specced: If the use element is in the very same DOM subtree as the defs section, the relative # url should resolve, just like it does resolve properly if the svg is used in a data url as a image source. Moving the self-contained (with no refernces to anything else outside the svg element) SVG image from the top-level DOM into a shadow dom should *not* break it completely. SVG defs belong to SVG just like SVG belongs to HTML5. If they don't work in shadow doms at all, then shadow dom does not support HTML5.

Not supporting SVGUseElements in shadow doms would be like not supporting querySelector("#someHash") inside shadow dom, or actually even worse, because this affects static image assets and not even javascript.

If you keep the implementation the way it is, this will be yet another reason for devs *not* to switch to shadow DOM. Because without being able to use vector graphics in shadow dom, devs will rather not use shadow dom than omit the graphics.

-- 
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/20170804/66abfc9e/attachment-0001.html>


More information about the webkit-unassigned mailing list