[wpt-sync] Sync PR 63134 - WebKit export of https://bugs.webkit.org/show_bug.cgi?id=322871
Categories
(Core :: Layout: Grid, task, P4)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox160 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 63134 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/63134
Details from upstream follow.
Sammy Gill <sammy.gill@apple.com> wrote:
WebKit export of https://bugs.webkit.org/show_bug.cgi?id=322871
WebKit export from bug: [GFC] Fixed track sizing functions get overridden during "size tracks to fit non-spanning items"
<pre>
[GFC] Fixed track sizing functions get overridden during "size tracks to fit non-spanning items".sizeTracksToFitNonSpanningItems() implements the step of the track sizing algorithm which
sizes the intrinsic breadths of a track from the items in it:
<a href="https://drafts.csswg.org/css-grid-2/#algo-single-span-items">https://drafts.csswg.org/css-grid-2/#algo-single-span-items</a>That step has a clause for each intrinsic breadth, and none for a <length-percentage> one,
since Initialize Track Sizes already resolved those to an absolute length. Both switchOn()
over the track sizing functions assigned unconditionally though, so a <length-percentage>
breadth fell into the ASSERT_NOT_REACHED() case and overwrote the resolved size with zero.Instead, we should just return the base size/growth limit that was
determined during the "Initialize Track Sizes," step.The test covers each of the fixed, percentage and calculated breadths against each of the
auto, min-content and max-content breadths, in both the minimum and the maximum position. It
is limited to rows because an implicit column cannot be run through GFC yet, whether it comes
from a column auto flow or from an item placed past the explicit grid, so the equivalent
grid-auto-columns cases are still handled by legacy grid layout.WebKit-Bug: <a href="https://bugs.webkit.org/show_bug.cgi?id=322871">https://bugs.webkit.org/show_bug.cgi?id=322871</a>
WebKit-Canonical-Link: <a href="https://commits.webkit.org/320168@main">https://commits.webkit.org/320168@main</a>
</pre>
| Assignee | ||
Updated•1 month ago
|
| Assignee | ||
Comment 1•1 month ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/jobs?repo=try&landoInstance=lando-prod-2025&landoCommitID=99370
| Assignee | ||
Updated•1 month ago
|
| Assignee | ||
Updated•1 month ago
|
| Assignee | ||
Comment 2•1 month ago
|
||
CI Results
Ran 11 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 67 tests
Status Summary
Firefox
OK : 1[GitHub] 33[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[Gecko-linux2204-64-wayland-debug, Gecko-linux2204-64-wayland-opt] 22[GitHub] 524[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 553[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-64-25h2-debug, Gecko-windows11-64-25h2-opt]
FAIL: 31[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 32[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-64-25h2-debug, Gecko-windows11-64-25h2-opt]
Chrome
OK : 1
PASS: 22
Safari
OK : 1
PASS: 22
Links
Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base
Details
New Tests That Don't Pass
- /css/css-grid/layout-algorithm/grid-flex-track-intrinsic-sizes-002.html [wpt.fyi]
- 'grid' with: grid-template-columns: 1fr 1fr 1fr; and grid-template-rows: 1fr 1fr 1fr;:
FAIL
- 'grid' with: grid-template-columns: 1fr 1fr 1fr; and grid-template-rows: 1fr 1fr 1fr;:
- /css/css-grid/layout-algorithm/grid-flex-track-intrinsic-sizes-003.html [wpt.fyi]
- min-content min item 'grid' with: grid-template-columns: 0.5fr auto; and grid-template-rows: 0.5fr auto;:
FAIL - 50px min item 'grid' with: grid-template-columns: 0.5fr auto; and grid-template-rows: 0.5fr auto;:
FAIL
- min-content min item 'grid' with: grid-template-columns: 0.5fr auto; and grid-template-rows: 0.5fr auto;:
- /css/css-grid/layout-algorithm/grid-minimum-contribution-baseline-shim-vertical-lr.html [wpt.fyi]
- .grid 2:
FAIL - .grid 3:
FAIL
- .grid 2:
- /css/css-grid/layout-algorithm/grid-minimum-contribution-baseline-shim-vertical-rl.html [wpt.fyi]
- .grid 2:
FAIL - .grid 3:
FAIL
- .grid 2:
- /css/css-grid/layout-algorithm/grid-minimum-contribution-baseline-shim.html [wpt.fyi]
- .grid 2:
FAIL - .grid 3:
FAIL
- .grid 2:
- /css/css-grid/layout-algorithm/minmax-tracks-with-fixed-breadths.html [wpt.fyi]
- A track with an automatic minimum grows to its fixed maximum:
FAIL[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[GitHub] (Chrome:PASS, Safari:PASS) - A track with a min-content minimum grows to its fixed maximum:
FAIL[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[GitHub] (Chrome:PASS, Safari:PASS) - A track with a max-content minimum grows to its fixed maximum:
FAIL[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[GitHub] (Chrome:PASS, Safari:PASS) - A track with an automatic minimum grows to its percentage maximum:
FAIL[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[GitHub] (Chrome:PASS, Safari:PASS) - A track with a min-content minimum grows to its percentage maximum:
FAIL[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[GitHub] (Chrome:PASS, Safari:PASS) - A track with a max-content minimum grows to its percentage maximum:
FAIL[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[GitHub] (Chrome:PASS, Safari:PASS) - A track with an automatic minimum grows to its calculated maximum:
FAIL[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[GitHub] (Chrome:PASS, Safari:PASS) - A track with a min-content minimum grows to its calculated maximum:
FAIL[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[GitHub] (Chrome:PASS, Safari:PASS) - A track with a max-content minimum grows to its calculated maximum:
FAIL[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[GitHub] (Chrome:PASS, Safari:PASS) - A track with a min-content maximum keeps its fixed minimum:
FAIL[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[GitHub] (Chrome:PASS, Safari:PASS) - A track with a max-content maximum keeps its fixed minimum:
FAIL[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[GitHub] (Chrome:PASS, Safari:PASS) - A track with an automatic maximum keeps its fixed minimum:
FAIL[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[GitHub] (Chrome:PASS, Safari:PASS) - A track with a min-content maximum keeps its percentage minimum:
FAIL[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[GitHub] (Chrome:PASS, Safari:PASS) - A track with a max-content maximum keeps its percentage minimum:
FAIL[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[GitHub] (Chrome:PASS, Safari:PASS) - A track with an automatic maximum keeps its percentage minimum:
FAIL[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[GitHub] (Chrome:PASS, Safari:PASS) - A track with a min-content maximum keeps its calculated minimum:
FAIL[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[GitHub] (Chrome:PASS, Safari:PASS) - A track with a max-content maximum keeps its calculated minimum:
FAIL[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[GitHub] (Chrome:PASS, Safari:PASS) - A track with an automatic maximum keeps its calculated minimum:
FAIL[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[GitHub] (Chrome:PASS, Safari:PASS) - Every track with an automatic minimum grows to its fixed maximum:
FAIL[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[GitHub] (Chrome:PASS, Safari:PASS) - A track with an automatic minimum grows to its fixed maximum when the grid container height is indefinite:
FAIL[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[GitHub] (Chrome:PASS, Safari:PASS) - A track with an automatic maximum keeps its fixed minimum when the grid container height is indefinite:
FAIL[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[GitHub] (Chrome:PASS, Safari:PASS) - A track whose minimum and maximum are both fixed grows to its maximum:
FAIL[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[GitHub] (Chrome:PASS, Safari:PASS)
- A track with an automatic minimum grows to its fixed maximum:
- /css/css-grid/layout-algorithm/flex-tracks-with-fractional-size.html [wpt.fyi]:
FAIL
https://hg.mozilla.org/mozilla-central/rev/e3f3ffb5dff5
https://hg.mozilla.org/mozilla-central/rev/724294295b9f
Description
•