Improve Translated Reverse-Script-Direction Page Layout for Tables
Categories
(Firefox :: Translations, enhancement)
Tracking
()
People
(Reporter: nordzilla, Assigned: nordzilla)
Details
Attachments
(3 files)
Description
In Bug 1975487 we made some improvements to the page layout when translating between LTR/RTL languages.
After soliciting more feedback from RTL-language spakers, one case that could specifically be handled better are <table> tags and their content.
With the implementation from Bug 1975487, the text gets the proper direction, but the table itself does not.
We should add some special-case logic that will check whether the text is within a table, and flip the entire table direction appropriately.
| Assignee | ||
Comment 1•2 months ago
|
||
This patch adds some special-case logic that ensures <table>
elements and relevant childen are flipped to the target script
direction when translating between LTR/RTL pages.
Updated•2 months ago
|
| Assignee | ||
Updated•2 months ago
|
| Assignee | ||
Comment 4•2 months ago
|
||
Steps to Verify
- Open the test page attached to this bug.
- Note that the page is right-aligned as written in Arabic.
- Translate the page from Arabic to English.
Expected Behavior
The alignments of the table cells and columns become left adjusted.
Comment 5•2 months ago
|
||
firefox-beta Uplift Approval Request
- User impact if declined: Similar to Bug 1975487, which I uplifted earlier this week. This is one more low-risk, but high-impact change to Translations quality of life when translating between LTR and RTL languages (e.g. English to Arabic). This will be my final uplift of this kind for this cycle, since we are exiting early beta soon.
- Code covered by automated testing: yes
- Fix verified in Nightly: no
- Needs manual QE test: yes
- Steps to reproduce for manual QE testing: Steps to verify are in Bug 1995403, comment 4.
- Risk associated with taking this patch: low
- Explanation of risk level: This is once again a very low-risk change that only modifies HTML element attributes and is well covered by automated tests.
- String changes made/needed: None
- Is Android affected?: yes
| Assignee | ||
Comment 6•2 months ago
|
||
This patch adds some special-case logic that ensures <table>
elements and relevant childen are flipped to the target script
direction when translating between LTR/RTL pages.
Original Revision: https://phabricator.services.mozilla.com/D269294
Updated•2 months ago
|
Updated•2 months ago
|
Comment 7•2 months ago
|
||
Reproduced the issue with Firefox 146.0a1 (20251020161546) on Windows 11. Translating the test page will show the alignments of the table cells and columns on the right.
The issue is verified fixed with Firefox 146.0a1 (2025-10-23) on Windows 11, macOS 26, and Ubuntu 24. The table cells are displayed on the left side.
Updated•2 months ago
|
Updated•2 months ago
|
Comment 9•2 months ago
|
||
The issue is verified fixed with Firefox 145.0b6 on Windows 11, macOS 26, and Ubuntu 24. The table cells are displayed on the left side.
Description
•