Closed Bug 2014019 Opened 9 months ago Closed 9 months ago

RTL Arabic text on SVG <textPath> is broken since Firefox 146

Categories

(Core :: SVG, defect)

Firefox 147
defect

Tracking

()

RESOLVED FIXED
149 Branch
Tracking Status
firefox-esr115 --- unaffected
firefox-esr140 --- unaffected
firefox147 --- wontfix
firefox148 --- fixed
firefox149 --- verified

People

(Reporter: hassene.aguili, Assigned: longsonr)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 file, 3 external files)

Steps to reproduce:

if you test with this simple code on firefox ( 146+ including current version) and compare it to any chromium or other browser in general , you'll see the

<!DOCTYPE html>
<html lang="ar">
<meta charset="utf-8" />
<body style="margin:20px">

<svg width="600" height="100">
<path id="path37" d="M 50 50 L 550 50" fill="none" stroke="red" stroke-width="3" />
<text font-size="20px">
<textPath href="#path37" startOffset="100%" text-anchor="end">
هذا اختبار لعرض النص العربي على المسار
</textPath>
</text>

</svg>

<script>
document.getElementById('text37').setAttribute('textLength', '480px');
</script>

</body>
</html>

Actual results:

Arabic text should render correctly along the path (connected glyphs, no clipping), as in Firefox ≤145 and Chrome.

Expected results:

In Firefox 146+:

Text is broken ( spaces and glyphs on top of each other)

Status: UNCONFIRMED → NEW
Component: Untriaged → SVG
Ever confirmed: true
Keywords: regression
Product: Firefox → Core
Regressed by: 1994979

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

:longsonr, since you are the author of the regressor, bug 1994979, could you take a look?

For more information, please visit BugBot documentation.

Attached file reporter's testcase —
Assignee: nobody → longsonr
Status: NEW → ASSIGNED
Flags: needinfo?(longsonr)
Severity: -- → S3
Status: ASSIGNED → RESOLVED
Closed: 9 months ago
Resolution: --- → FIXED
Target Milestone: --- → 149 Branch
Attachment #9542227 - Flags: approval-mozilla-beta?

firefox-beta Uplift Approval Request

  • User impact if declined: RTL SVG text in textPath elements is rendered incorrectly.
  • Code covered by automated testing: no
  • Fix verified in Nightly: yes
  • Needs manual QE test: yes
  • Steps to reproduce for manual QE testing: See testcase in bug. Compare rendering with Chrome or earlier version of Firefox.
  • Risk associated with taking this patch: low
  • Explanation of risk level: change is limited to RTL text within textPath elements and merely reverts the sign of a single value to its value in prior releases.
  • String changes made/needed: none
  • Is Android affected?: yes
Flags: qe-verify+

Verified as fixed on the Firefox for Android nightly 149.0a1 from 2/4 with a Motorola Moto G30 (Android 12).

Flags: qe-verify+
Attachment #9542227 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/57571 for changes under testing/web-platform/tests
Flags: in-testsuite+
Upstream PR merged by moz-wptsync-bot
Upstream PR merged by moz-wptsync-bot

A patch has been attached on this bug, which was already closed. Filing a separate bug will ensure better tracking. If this was not by mistake and further action is needed, please alert the appropriate party. (Or: if the patch doesn't change behavior -- e.g. landing a test case, or fixing a typo -- then feel free to disregard this message)

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

Attachment

General

Created:
Updated:
Size: