Space glyph is shifted and clipped in upright vertical text
Categories
(Core :: Layout: Text and Fonts, defect)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox163 | --- | fixed |
People
(Reporter: calixte, Assigned: jfkthame)
Details
Attachments
(1 file, 1 external file)
|
1.12 KB,
text/html
|
Details |
Steps to reproduce
- Open
firefox-upright-space.html. - Compare the
AAAandA Acolumns. Both usewriting-mode: vertical-rlandtext-orientation: upright. The embedded font maps U+0041 (A) and U+0020 (space) to the same hollow square glyph with a one-em advance.
Actual result
In Firefox Nightly 162.0a1, the middle square in A A is shifted up and to the right. It overlaps the preceding square and is partially clipped. All three squares in AAA render correctly.
Expected result
Both columns should show three complete, vertically aligned squares.
Range.getBoundingClientRect() gives the same vertical offsets for the three characters in each column (0, 48, and 96 CSS px).
For info, it works as expected in Chrome.
Comment 1•3 days ago
|
||
Reproduces for me on macOS. This appears to be a Layout issue. I'll send over to them for triage.
| Assignee | ||
Comment 2•2 days ago
|
||
Interestingly, if I replace the space with it renders as expected.
| Assignee | ||
Comment 3•2 days ago
|
||
Updated•2 days ago
|
Comment 5•2 days ago
|
||
| bugherder | ||
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/65736 for changes under testing/web-platform/tests
Upstream PR merged by moz-wptsync-bot
Description
•