Closed Bug 2077010 Opened 1 month ago Closed 1 month ago

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

Categories

(Core :: Layout: Grid, task, P4)

task

Tracking

()

RESOLVED FIXED
160 Branch
Tracking Status
firefox160 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Alan Baradlay <zalan@apple.com> wrote:

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

WebKit export from bug: REGRESSION(316706@main) tess.oconnor.cx: lots of spacing between image and content towards bottom of page

<pre>
REGRESSION(<a href="https://commits.webkit.org/316706@main">316706@main</a>) tess.oconnor.cx: lots of spacing between image and content towards bottom of page

<a href="https://commits.webkit.org/316706@main">316706@main</a> dropped the BaselineGroup::computeSize() > 1 guard from baselineOffsetForGridItem() on the assumption
that a single participant's max ascent is its own ascent, so that the offset is already zero.
That only holds while the ascent is stable: it is collected in computeBaselineAlignmentContext()
and computed again when the offset is queried. An item whose used size is only resolved after track sizing
(e.g. a replaced item with a percentage max-width) reports a smaller ascent by then, and the stale, larger max ascent turns into
a baseline offset that pushes the single item away from the start of its grid area.

Track the number of alignment subjects next to the max ascent in GridBaselineAlignment's per-context state and restore the guard (similar to what we had before <a href="https://commits.webkit.org/316706@main">316706@main</a>).

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

Component: web-platform-tests → Layout: Grid
Product: Testing → Core
Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]

CI Results

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

Total 430 tests

Status Summary

Firefox

OK : 1[GitHub] 263[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-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
PASS: 4[GitHub] 1522[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 1676[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-debug] 1678[Gecko-android-em-14-x86_64-lite-opt-geckoview] 1679[Gecko-linux2404-64-opt] 1682[Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
FAIL: 52[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 59[Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt] 62[Gecko-linux2404-64-opt] 63[Gecko-android-em-14-x86_64-lite-opt-geckoview] 65[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-debug]

Chrome

OK : 1
PASS: 4

Safari

OK : 1
PASS: 4

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

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