Open Bug 1862249 Opened 6 months ago Updated 4 months ago

Trailing ideographic space (U+3000) should hang at end-of-line

Categories

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

defect

Tracking

()

REOPENED

People

(Reporter: jfkthame, Assigned: jfkthame)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

Testcase: http://wpt.live/css/css-text/white-space/trailing-ideographic-space-001.html

This fails because we do not treat the ideographic space as hanging at the end of the first line; therefore it contributes its width to its parent <div>, and the red background becomes visible.

A couple of other WPT tests currently fail similarly.

In addition to the width behavior that these tests are actually about,
we get a spurious rendering discrepancy at least on Linux (depending on
font metrics) because the height of the green background applied to the
<div> does not necessarily match that of a background applied to a <span>
within it.

To avoid this, we can apply the green background to an inline (span)
element, not to the containing block (div), so that it always gets a
consistent height.

Assignee: nobody → jfkthame
Status: NEW → ASSIGNED

Fixing this also resolves a couple of text-transform test failures, because what was
failing was not the text-transform itself, but rather the trailing-ideographic-space
treatment.

Depends on D192394

Pushed by jkew@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/81edb6c9b2f3
patch 1 - Make a couple of trailing-ideographic-space tests more robust. r=layout-reviewers,emilio
https://hg.mozilla.org/integration/autoland/rev/3ff9d913d60a
patch 2 - Recognize ideographic space (U+3000) as trimmable, so it can hang at end-of-line. r=layout-reviewers,emilio
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/42928 for changes under testing/web-platform/tests
Status: ASSIGNED → RESOLVED
Closed: 6 months ago
Resolution: --- → FIXED
Target Milestone: --- → 121 Branch
Upstream PR merged by moz-wptsync-bot
Regressions: 1870973
Regressions: 1871526
Regressions: 1871364

Re-opening, as the fix that landed here has just been backed out in https://hg.mozilla.org/mozilla-central/rev/877aa1219c43 to fix bug 1870973 and other reported regressions. The backout has also been uplifted to Fx122.

Status: RESOLVED → REOPENED
Resolution: FIXED → ---
See Also: → 1871777

Backed out for 121.0.1 also

Target Milestone: 121 Branch → ---
See Also: → 1872826
Regressions: 1872826
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: