I found this interesting code snippet on Mozilla and decided to incorporate it into a Vue component.
<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg">
<path id="MyPath" fill="none" stroke="red"
d="M10,90 Q90,90 90,45 Q90,10 50,10 Q10,10 10,40 Q10,70 45,70 Q70,70 75,50" />
<text>
<textPath href="#MyPath">
The quick brown fox jumps over the lazy dog.
</textPath>
</text>
</svg>
Unfortunately, I encountered an issue where the <textPath>
element didn't display, only the <path>
rendered.
I attempted to adjust the width, display settings, overflow properties, but nothing seemed to work. It remained at a size of 0x0.
This problem is puzzling to me, especially since the same code works in other tabs when Vue is not involved.
To clarify, I am working with Vue and Gridsome.