Closed Bug 2072047 Opened 2 months ago Closed 2 months ago

[wpt-sync] Sync PR 62688 - [masonry] Fix insets for overlapping gutters

Categories

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

task

Tracking

()

RESOLVED FIXED
158 Branch
Tracking Status
firefox158 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Javier Contreras Tenorio <javiercon@microsoft.com> wrote:

[masonry] Fix insets for overlapping gutters

Grid-lanes resolved percentage insets against a single crossing gutter,
even when items adjacent lanes formed a wider overlapping junction.

We now reuse flex's opening/closing overlap-window representation to
model each connected gap junction with two endpoints, as per the spec
[1]. We reuse some of the existing logic for Next via a new helper
function.

We then resolve percentage insets against the union of its gutters (per
the spec as well).

Because grid-lanes can have spanning items, we retain "blocked" state
inside a window separately from the state after it.

[1] https://www.w3.org/TR/css-gaps-1/#segment-endpoints

Bug: 343257585
Change-Id: Ifa6bf873f8b928b5e797de47bdab61359f708c51

Reviewed-on: https://chromium-review.googlesource.com/8386618
WPT-Export-Revision: 28ff8afecdb8ecc781e26d50a39733ec0aa01fbc

Component: web-platform-tests → CSS Parsing and Computation
Product: Testing → Core
Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]
Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]
Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]

CI Results

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

Total 97 tests

Status Summary

Firefox

PASS: 2
FAIL: 1[GitHub] 95[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

FAIL: 3

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

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