Regression: Multiple textPath inside text all use the first href
Categories
(Core :: Layout: Text and Fonts, defect)
Tracking
()
People
(Reporter: arnaud.barre72, Unassigned)
Details
Attachments
(1 file)
140.77 KB,
image/png
|
Details |
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:85.0) Gecko/20100101 Firefox/85.0
Steps to reproduce:
Here is my svg
<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg">
<defs>
<path id="stampTopPath" d="M 10 50 A 40 40 0 0 1 90 50" />
<path id="stampBottomPath" d="M 0 50 A 40 40 0 0 0 100 50" />
</defs>
<text
fill="#090053"
style="font-family: 'Euclid Circular B'; font-size: 10px; font-weight: 500; letter-spacing: 2.5px"
>
<textPath
id="top"
href="#stampTopPath"
text-anchor="middle"
startOffset="50%"
>
WE ARE HIRING!
</textPath>
<textPath
id="bottom"
href="#stampBottomPath"
text-anchor="middle"
startOffset="50%"
baseline-shift="true"
>
NABLA.COM
</textPath>
</text>
</svg>
Actual results:
See in screenshot: Safari, Firefox, Chrome.
It seems that the second textPath uses the top href and not the bottom one.
Expected results:
Works like before (was working few months ago when first created).
In the meantime, putting each textPath inside it own text node works, but it requires to duplicate the text styling
Comment 1•4 years ago
|
||
The Bugbug bot thinks this bug should belong to the 'Core::Layout: Text and Fonts' component, and is moving the bug to that component. Please revert this change in case you think the bot is wrong.
Updated•4 years ago
|
Reporter | ||
Comment 3•4 years ago
|
||
Thanks for the update and sorry for the duplicate. I'm a bit surprise that the previous one didn't appear when searching for "textPath"
Description
•