Closed Bug 1691714 Opened 4 years ago Closed 4 years ago

Regression: Multiple textPath inside text all use the first href

Categories

(Core :: Layout: Text and Fonts, defect)

Firefox 85
defect

Tracking

()

RESOLVED DUPLICATE of bug 1689799

People

(Reporter: arnaud.barre72, Unassigned)

Details

Attachments

(1 file)

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

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.

Component: Untriaged → Layout: Text and Fonts
Product: Firefox → Core
Status: UNCONFIRMED → RESOLVED
Closed: 4 years ago
Resolution: --- → DUPLICATE

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"

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: