Closed Bug 1774851 Opened 4 years ago Closed 4 years ago

CSS hyphenate-character property does not handle multi-character strings correctly in RTL context

Categories

(Core :: Layout: Text and Fonts, defect, P3)

All
Unspecified
defect

Tracking

()

RESOLVED FIXED
104 Branch
Tracking Status
firefox104 --- fixed

People

(Reporter: jfkthame, Assigned: jfkthame)

References

Details

Attachments

(2 files)

When hyphenate-character is given a multi-char string, it always renders the string as LTR. Noticed when looking at bug 1774822 and trying to use

hyphenate-character: '\2005\0640';

for a kashida character preceded by a space. In Uighur (RTL) content, this ought to render a kashida with space to the right of it, but in fact the space appears to the left, and the kashida butts up against the preceding text (on its right).

See Also: → 1774822
Assignee: nobody → jfkthame
Status: NEW → ASSIGNED
Pushed by jkew@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/4f2f44814d66 Apply the proper directionality when creating the hyphenate-character textrun. r=emilio https://hg.mozilla.org/integration/autoland/rev/5a57a176ffc2 Add WPT testcase using hyphenate-character to specify the rendering of a Uighur-style hyphen. r=emilio
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/34627 for changes under testing/web-platform/tests
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 104 Branch
Upstream PR merged by moz-wptsync-bot
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: