Zero-width joiners should not affect CSS white-space processing (collapsing/trimmng of space)
Categories
(Core :: Layout: Text and Fonts, defect)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox112 | --- | fixed |
People
(Reporter: jfkthame, Assigned: jfkthame)
References
Details
Attachments
(2 files)
Spun off from bug 1817862 comment 3:
The presence of ZWJ (or ZWNJ) at the beginning or end of a word (e.g. as sometimes used to force joining forms of Arabic letters) should not have any effect on the CSS white-space processing of the surrounding spaces.
Testcase: https://codepen.io/jfkthame/pen/XWPNVPP
Here, the lines with 200c and 200d (ZWNJ and ZWJ) incorrectly show a leading space; and the first paragraph (with width:min-content) shows an unwanted leading space, a double space between "is" and "a", and excessive width of the frame.
| Assignee | ||
Comment 1•3 years ago
|
||
Updated•3 years ago
|
| Assignee | ||
Comment 2•3 years ago
|
||
These both fail with current mozilla-central, but pass once the patch here is applied.
They pass as expected in Safari.
Test 001 also passes in Chrome; 002 fails because of an apparent min-width calculation error
resulting in different wrapping.
Depends on D171061
Comment 5•3 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/fad4426b7b0b
https://hg.mozilla.org/mozilla-central/rev/655b861eeef0
Description
•