Closed Bug 2086942 Opened 1 month ago Closed 20 days ago

[wpt-sync] Sync PR 64139 - [gap-decorations] Fix flex main gap added twice for overflowing content

Categories

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

task

Tracking

()

RESOLVED FIXED
162 Branch
Tracking Status
firefox162 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

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

[gap-decorations] Fix flex main gap added twice for overflowing content

When a row flex container with gap decorations fragments, a row can end
in one fragmentainer while one of its items has overflowing content that
continues into the next one.

Before this CL, the resumed item overflow still went through the usual
flow for gap decorations, through
FlexGapAccumulator::BuildGapsForCurrentItem(), and we added a
corresponding MainGap for it even though the previous fragment had
already recorded it. At paint time, the stitched index of that duplicate
gap was equal to the total row gap count, and the CHECK in
GapGeometry::DecorationValueAssignmentForGap() failed.

With this CL, each FlexLine records in has_inflow_continuation
whether one of its items broke with in-flow content at the end of a
fragmentainer. In the next fragmentainer, an item that resumes only for
overflow skips gap building when its row has no in-flow continuation.

Fixed: 574825053
Change-Id: I86b98b82a78f0c78ca07972c7bd92ca0c2ac0f2c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/8642317
Reviewed-by: Ian Kilpatrick \<ikilpatrick@chromium.org>
Commit-Queue: Javier Contreras \<javiercon@microsoft.com>
Cr-Commit-Position: refs/heads/main@{#1726259}

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

CI Results

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

Total 37 tests

Status Summary

Firefox

PASS : 1[GitHub] 3[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-linux2204-64-wayland-debug, Gecko-linux2204-64-wayland-opt, 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]
FAIL : 34

Chrome

CRASH: 1

Safari

PASS : 1

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/4597cbf8a96a https://hg.mozilla.org/integration/autoland/rev/88e219779d24 [wpt PR 64139] - [gap-decorations] Fix flex main gap added twice for overflowing content, a=testonly
Status: NEW → RESOLVED
Closed: 20 days ago
Resolution: --- → FIXED
Target Milestone: --- → 162 Branch
You need to log in before you can comment on or make changes to this bug.