Closed krolovolk closed 6 months ago
@PhenX I would also love to see a fix for this.
Have the same error.
I don't know if the issue here was with the ID reference or just the general lackluster symbol
support. ID references should be OK in the current release. symbol
support is still not great.
I'm unable to get the sample posted here to display even in a web browser. But with some changes to the code, I am able to render the following sample provided on MDN:
<svg viewBox="0 0 80 20" xmlns="http://www.w3.org/2000/svg">
<!-- Our symbol in its own coordinate system -->
<symbol id="myDot" width="10" height="10" viewBox="0 0 2 2">
<circle cx="1" cy="1" r="1" />
</symbol>
<!-- A grid to materialize our symbol positioning -->
<path
d="M0,10 h80 M10,0 v20 M25,0 v20 M40,0 v20 M55,0 v20 M70,0 v20"
fill="none"
stroke="pink" />
<!-- All instances of our symbol -->
<use href="#myDot" x="5" y="5" style="opacity:1.0" />
<use href="#myDot" x="20" y="5" style="opacity:0.8" />
<use href="#myDot" x="35" y="5" style="opacity:0.6" />
<use href="#myDot" x="50" y="5" style="opacity:0.4" />
<use href="#myDot" x="65" y="5" style="opacity:0.2" />
</svg>
Hello! Doesn't correctly parse svg with
Objects are shown on first symbol positions. Thanks for support