External <use> elements cannot reference external defs
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Inkscape 0.92.2 2405546, 2018-03-11
If your document has a <use> element that references an element from a separate document, <use> directives in that external document will not function properly (except for further external <use> elements).
Even if the xlink:hrefs in the external document refer to elements that are nested within the <use>'d entity, those clones will not function correctly.
Attached is a simple test case. It contains an external file with a cloned circle with a gradient fill. The gradient is in the defs, but the circle and clone are otherwise simply defined:
<g id="use-me">
<circle id="path815" cx="32" cy="32" r="24"
<use xlink:href=
</g>
The other file imports that group:
<use xlink:href=
The imported entities attempt to read defs out of the including document's own defs, but do not check their own defs or other imported objects. The result is that the file is completely empty when viewed from InkScape. It renders as expected in Firefox.
Hi, thanks for reporting. We're moving our bugtracker to GitLab, and I've closed this issue in favour of https:/ /gitlab. com/inkscape/ inbox/- /issues/ 1363 (on GitLab), where it was reported again.
Please feel free to file new bugs about the issues you're seeing at inkscape. org/report.
http://