<use> tags are not rendered when they are before their referenced elements
geekley opened this issue · comments
Simple example:
<svg
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
>
<use
x="120"
y="0"
xlink:href="#shape"
/>
<g id="shape">
<rect x="50" y="50" width="50" height="50" />
<circle cx="50" cy="50" r="50" />
</g>
</svg>
This should render as 2 shapes (like the browser and Inkscape do), but the thumbnail preview only shows 1 shape, not recognizing the <use>
tag.
When the use tag is after the referenced element, both shapes are shown correctly.
I didn't test it, but it is possible that other tags with the href
or xlink:href
attribute also have this incorrect behavior.
If this bug is in an external library (Qt?) then where should the issue be submitted?
Definitely a bug. I experienced the same problem.
Tried to file a bug: https://bugreports.qt.io/browse/QTBUG-69694
QT-bug is fixed (merge into 5.1 tree). See https://bugreports.qt.io/browse/QTBUG-69694
@maphew: Do you link againts qt 5.1?
As the binaries on Appveyor already use a newer QT version - is there anything else to do here than creating an official release from it (after fixing #36 the 64bit installer) to "fix" this bug from this repo's side?
If the svg example in OP renders properly post #36 then yes I would call this issue closed.
#45 fixes this issue.