Closed Bug 1907772 Opened 1 year ago Closed 1 year ago

SVG textPath rendering is broken when letter-spacing is present

Categories

(Core :: SVG, defect)

defect

Tracking

()

RESOLVED FIXED
130 Branch
Tracking Status
firefox-esr115 --- unaffected
firefox-esr128 --- unaffected
firefox128 --- unaffected
firefox129 + fixed
firefox130 + fixed

People

(Reporter: jfkthame, Assigned: jfkthame)

References

(Regression)

Details

(Keywords: regression)

Attachments

(2 files)

Since bug 1892262 landed, the testcase at https://bug1663380.bmoattachments.org/attachment.cgi?id=9174256, which should render the text "ABCDE ABCDE" spaced out along an arc, displays only the first character; the remaining text is missing.

Bug 1892262 added code to "trim" leading letter-spacing at start of line. I don't think we should apply this to text in SVG. In general it's unclear what would be the "start of line" as text elements (or indeed the individual characters within them) may be placed arbitrarily.

Set release status flags based on info from the regressing bug 1892262

SVG text elements in general don't have a clearly-defined concept of "lines", so we can't
know where it would be appropriate to trim.

Pushed by jkew@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/e75b0f8b9b42 Don't attempt to trim letter-spacing at start of line in textframes being used for SVG text. r=longsonr
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/47126 for changes under testing/web-platform/tests
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 130 Branch
Upstream PR merged by moz-wptsync-bot
Duplicate of this bug: 1908041

SVG text elements in general don't have a clearly-defined concept of "lines", so we can't
know where it would be appropriate to trim.

Original Revision: https://phabricator.services.mozilla.com/D216506

Attachment #9412939 - Flags: approval-mozilla-beta?

beta Uplift Approval Request

  • User impact if declined: SVG text-on-path broken if letter-spacing is present
  • Code covered by automated testing: yes
  • Fix verified in Nightly: no
  • Needs manual QE test: no
  • Steps to reproduce for manual QE testing: n/a
  • Risk associated with taking this patch: low
  • Explanation of risk level: one-line patch to avoid affecting SVG text
  • String changes made/needed: none
  • Is Android affected?: yes
Attachment #9412939 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: