SVG import bug: <use> element does not work
Example:
<svg width="355" height="355" viewBox="0 0 355 355" fill="none" xmlns="http://www.w3.org/2000/svg">
<use href="#mypath" x="100" y="100"/>
<circle id="mypath" cx="127.021" cy="127.021" r="127.021" fill="#FF7575" fill-opacity="0.5"/>
</svg>
2
votes
-
Lauren
commented
Another example:
```
<svg xmlns="http://www.w3.org/2000/svg" width="400" height="400" viewBox="0 0 124 124" fill="none">
<defs>
<rect id="myrect" width="124" height="124" rx="24" fill="#F97316"/>
</defs>
<use href="#myrect" />
</svg>
```