Closed Bug 2041650 Opened 6 months ago Closed 6 months ago

[wpt-sync] Sync PR 60097 - [Gap Decorations] Fix gap lookup with collapsed grid tracks

Categories

(Core :: CSS Parsing and Computation, task, P4)

task

Tracking

()

RESOLVED FIXED
153 Branch
Tracking Status
firefox153 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Kurt Catti-Schmidt <kschmi@microsoft.com> wrote:

[Gap Decorations] Fix gap lookup with collapsed grid tracks

When ranges are collapsed in grid layouts (via auto-fit repeaters in
grid-template-rows/columns), the gap indices can be incorrect, resulting
in subsequent gap decorations to be off by n tracks (where n is the
number of collapsed tracks).

This change fixes this by iterating over sets and skipping collapsed
sets before calling FinalizeGapSegmentStateRangesFor.

WPT's were added with collapsed tracks before/middle/after gaps as well
as with spanners.

Bug: 498555663
Change-Id: I6de960516c55858193b945ef64f30e8faa240c5d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7823206
Reviewed-by: Alison Maher \<almaher@microsoft.com>
Commit-Queue: Kurt Catti-Schmidt \<kschmi@microsoft.com>
Cr-Commit-Position: refs/heads/main@{#1634673}

Component: web-platform-tests → CSS Parsing and Computation
Product: Testing → Core

CI Results

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

Total 175 tests and 2 subtests

Status Summary

Firefox

OK : 1
PASS: 7[GitHub] 8[Gecko-linux2204-64-wayland-debug, Gecko-linux2204-64-wayland-opt] 10[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]
FAIL: 144

Chrome

PASS: 3
FAIL: 4

Safari

PASS: 7

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

Pushed by wptsync@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/c4de74ab9c42 https://hg.mozilla.org/integration/autoland/rev/3849527a6339 [wpt PR 60097] - [Gap Decorations] Fix gap lookup with collapsed grid tracks, a=testonly
Status: NEW → RESOLVED
Closed: 6 months ago
Resolution: --- → FIXED
Target Milestone: --- → 153 Branch
You need to log in before you can comment on or make changes to this bug.