Closed Bug 2085510 Opened 1 month ago Closed 24 days ago

[wpt-sync] Sync PR 64068 - [masonry] Use per-segment rule visibility in grid-lanes

Categories

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

task

Tracking

()

RESOLVED FIXED
162 Branch
Tracking Status
firefox162 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

(Blocks 1 open bug, )

Details

(Whiteboard: [wptsync downstream])

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

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

Javier Contreras <javiercon@microsoft.com> wrote:

[masonry] Use per-segment rule visibility in grid-lanes

Before this change, rule-visibility-items in grid-lanes treated each
lane as a whole. A lane with any item made every segment next to it
occupied. The CSSWG resolved that rule visibility applies per segment in
grid-lanes too, so a segment next to empty space in a lane must be
treated as empty.

This change defines empty space through track openings. An opening is
the free space in a lane below an item. An opening is empty when no item
could align into it: there is no item above it, or the item above it has
zero available alignment space. A spec clarification for this definition
is pending, there is an open issue at
https://github.com/w3c/csswg-drafts/issues/14489#issuecomment-6132526774.

GridLanesRunningPositions already tracks openings and the item above
each one, but only for dense packing and stacking-axis alignment. It now
also tracks them when the container has gap decorations. The empty
openings are then stored per lane in the gap geometry, and paint checks
each rule segment against them.

Update the WPT references that the new definition changes, add tests for
unequal lanes, reversal, dense packing, and alignment, and remove
failure expectations for tests that now pass

Bug: 343257585
Change-Id: I1d7aa0e45b8bf50127c98d90b14bb8246dbb8200
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/8592813
Reviewed-by: Alison Maher \<almaher@microsoft.com>
Commit-Queue: Javier Contreras \<javiercon@microsoft.com>
Cr-Commit-Position: refs/heads/main@{#1724804}

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

CI Results

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

Total 191 tests

Status Summary

Firefox

PASS: 9
FAIL: 23[GitHub] 182[Gecko-android-em-14-x86_64-debug-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

PASS: 19
FAIL: 4

Safari

FAIL: 23

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

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