Closed Bug 2076986 Opened 1 month ago Closed 1 month ago

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

Categories

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

task

Tracking

()

RESOLVED FIXED
160 Branch
Tracking Status
firefox160 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

(Blocks 1 open bug, )

Details

(Whiteboard: [wptsync downstream])

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

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

Sammy Gill <sammy.gill@apple.com> wrote:

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

WebKit export from bug: [Grid Lanes] Explicitly-placed items should not advance the auto-placement cursor

<pre>
[Grid Lanes] Explicitly-placed items should not advance the auto-placement cursor.

Unlike regular grid, where all explicitly-placed items are positioned before auto-placement
runs, Grid Lanes places items interleaved in order. That raised the question of whether an
explicitly-placed item should move the auto-placement cursor along with it.

The CSSWG resolved this in
<a href="https://github.com/w3c/csswg-drafts/issues/13987#issuecomment-5192487721">https://github.com/w3c/csswg-drafts/issues/13987#issuecomment-5192487721</a>:

 RESOLVED: Remove issue, leave spec as-is (not updating auto-placement cursor with
 explicit placement)

GridLanesLayout was updating m_autoFlowNextCursor from insertIntoGridAndLayoutItem(), which
runs for every item, so explicitly-placed items dragged the cursor along too. Move the
update up into placeGridLanesItems(), which already knows whether the item resolved a
definite grid-axis position, and only advance the cursor for auto-placed items.

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

Component: web-platform-tests → Layout: Grid
Product: Testing → Core

CI Results

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

Total 86 tests

Status Summary

Firefox

PASS: 16[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] 17[Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
FAIL: 2[GitHub] 69[Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt] 70[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]

Chrome

PASS: 1
FAIL: 1

Safari

PASS: 2

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

Firefox-only Failures

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.