Closed Bug 2083465 Opened 1 month ago Closed 27 days ago

[wpt-sync] Sync PR 63814 - WebKit export of https://bugs.webkit.org/show_bug.cgi?id=325449

Categories

(Core :: Layout: Text and Fonts, task, P4)

task

Tracking

()

RESOLVED FIXED
162 Branch
Tracking Status
firefox162 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 63814 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/63814
Details from upstream follow.

Alan Baradlay <zalan@apple.com> wrote:

WebKit export of https://bugs.webkit.org/show_bug.cgi?id=325449

WebKit export from bug: [<!---->IFC]<!----> Justified line comes up short when its hanging trailing whitespace is inside an inline box

<pre>
[IFC] Justified line comes up short when its hanging trailing whitespace is inside an inline box

<div style="width: 110px; font: 20px monospace; white-space: pre-wrap; text-align: justify"><span>aa bb cc </span>dd</div>

The spaces after "cc" hang at the end of the first line, so justification should only stretch the gaps
between the words. FontCascade spreads a run's expansion over every space in its text, so we split the
hanging spaces off into their own run, but only when they ended the very last run: with the </span> after
them they got stretched too and "cc" fell short of the right edge. Now we split them off the last text run.

WebKit-Bug: <a href="https://bugs.webkit.org/show_bug.cgi?id=325449">https://bugs.webkit.org/show_bug.cgi?id=325449</a>
WebKit-Canonical-Link: <a href="https://commits.webkit.org/322224@main">https://commits.webkit.org/322224@main</a>
</pre>

Component: web-platform-tests → Layout: Text and Fonts
Product: Testing → Core

CI Results

Ran 11 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 457 tests and 192 subtests

Status Summary

Firefox

OK : 28
PASS: 1[GitHub] 4[Gecko-linux2204-64-wayland-debug, Gecko-linux2204-64-wayland-opt] 401[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 768[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt] 770[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
FAIL: 8[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 64[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt] 66[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt]

Chrome

PASS: 1

Safari

FAIL: 1

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

Status: NEW → RESOLVED
Closed: 27 days ago
Resolution: --- → FIXED
Target Milestone: --- → 162 Branch
You need to log in before you can comment on or make changes to this bug.