[Webkit-unassigned] [Bug 15443] SVGImage does not support sub-resource loading
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Feb 9 08:03:31 PST 2011
https://bugs.webkit.org/show_bug.cgi?id=15443
--- Comment #17 from Cosmin Truta <ctruta at chromium.org> 2011-02-09 08:03:30 PST ---
It is, in fact, much easier to use the <use> element instead of <image>, but with a caveat: the SVG specification does not allow <use> to reference an entire file. (This is unfortunate, the limitation is un-natural, and yet it would be "the right thing" to use when referencing external SVG files, just like <iframe> would do in HTML.)
This limitation of the <use> element can be worked around by adding an id at the top-level <svg> tag, as follows:
** file main.svg
<svg ...>
...
<use x="0" y="0" xlink:href="embedded.svg#main">
...
</svg>
** file embedded.svg
<svg id="main" ...>
...
</svg>
Unfortunately, external references in <use> do not work in WebKit at this moment. Mozilla and Opera handles them well, though.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list