Open Bug 1663380 Opened 4 years ago Updated 2 years ago

SVG textPath startOffset - curved text is not positioned correctly in Firefox

Categories

(Core :: SVG, defect)

Firefox 82
Unspecified
Windows 10
defect

Tracking

()

Webcompat Priority P3
Tracking Status
firefox82 --- affected

People

(Reporter: karlcow, Unassigned)

References

()

Details

(Whiteboard: [layout:backlog:quality])

Attachments

(1 file, 1 obsolete file)

As reported on https://webcompat.com/issues/57434

In Firefox my curved text (SVG text on circular path) is rotated slightly counterclockwise from the expected position. Seems okay when viewed in Chrome or Edge. Problem only seems to happen if word-spacing / letter-spacing attributes are specified. It looks like a FF bug to me.

<svg width="600" height="300">
  <defs>
    <path id="arc" d="M 100 300 A 200 200 0  0 1 500 300"></path>
  </defs>
  <text>
    <textPath text-anchor="middle" style="font-size: 30; letter-spacing: 24; word-spacing:18" href="#arc" startOffset="50%">ABCDE ABCDE</textPath>
  </text>
  <line x1="0" y1="224" x2="600" y2="224" style="stroke:black; strokeWidth:0.5"></line>
</svg>

Setting the to startOffset="52%" (Firefox) gets the equivalent position for startOffset="50%" (Chrome)

Attached image reporter's testcase (obsolete) —
Attachment #9174255 - Attachment is obsolete: true
Severity: -- → S3
Whiteboard: [layout:backlog:quality]
Webcompat Priority: ? → P3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: