RTL Arabic text on SVG <textPath> is broken since Firefox 146
Categories
(Core :: SVG, defect)
Tracking
()
| 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)
|
482 bytes,
text/html
|
Details |
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)
Comment 1•9 months ago
|
||
Regression window:
https://hg-edge.mozilla.org/integration/autoland/pushloghtml?fromchange=a7896c53a84506ed42a8752c3ac80ebef7317a6d&tochange=b6ebc19c013f8176cf701d9af1c5cf549b234307
Comment 2•9 months ago
|
||
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.
| Assignee | ||
Comment 3•9 months ago
|
||
| Assignee | ||
Comment 4•9 months ago
|
||
Updated•9 months ago
|
| Assignee | ||
Updated•9 months ago
|
| Assignee | ||
Comment 5•9 months ago
|
||
Updated•9 months ago
|
Updated•9 months ago
|
Comment 7•9 months ago
|
||
| bugherder | ||
| Assignee | ||
Comment 8•9 months ago
|
||
Original Revision: https://phabricator.services.mozilla.com/D281601
Updated•9 months ago
|
Comment 9•9 months ago
|
||
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
| Assignee | ||
Comment 10•9 months ago
|
||
Comment 11•9 months ago
|
||
Verified as fixed on the Firefox for Android nightly 149.0a1 from 2/4 with a Motorola Moto G30 (Android 12).
Updated•9 months ago
|
| Assignee | ||
Comment 12•9 months ago
|
||
Updated•9 months ago
|
Updated•9 months ago
|
Comment 13•9 months ago
|
||
| uplift | ||
Comment 14•9 months ago
|
||
Comment 16•9 months ago
|
||
| bugherder | ||
| Assignee | ||
Updated•9 months ago
|
Comment 19•9 months ago
|
||
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)
Description
•