External <use> elements cannot reference external defs

Bug #1777984 reported by Josh Ventura
6
This bug affects 1 person
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"
              style="fill:url(#linearGradient1758);fill-opacity:1" />
      <use xlink:href="#path815" transform="translate(64)"
           style="stroke:#800000" />
    </g>

The other file imports that group:
    <use xlink:href="external.svg#use-me" />

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.

Revision history for this message
Josh Ventura (joshv10) wrote :
Revision history for this message
Nathan Lee (nathan.lee) wrote :

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
http://inkscape.org/report.

Changed in inkscape:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.