Closed Bug 1937284 Opened 2 months ago Closed 2 months ago

[wpt-sync] Sync PR 49695 - [flex] Break all items into flex-lines upfront.

Categories

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

task

Tracking

()

RESOLVED FIXED
135 Branch
Tracking Status
firefox135 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Ian Kilpatrick <ikilpatrick@chromium.org> wrote:

[flex] Break all items into flex-lines upfront.

Previously we'd break items into flex-lines, line-by-line.

This meant that we'd never correctly compute the
"main_axis_inner_size" for column wrapped flex-lines (as you need
to calculate the max_sum_hypothetical_main_size, vs. just the
sum_hypothetical_main_size for the individual line.

This patch breaks items into flex-lines all in one pass. This means
that we can correctly determine the space to flex into fixing
justify-content-007.

Additionally adds a couple of tests for the flexing broken case.

After this patch we can now (relatively) easily add balancing.

Fixed: 40777433
Change-Id: I588adc16d6c066eeb925380f93ef8695a6211317
Reviewed-on: https://chromium-review.googlesource.com/6093961
WPT-Export-Revision: 515421c164b6984a1e35a564ec169ff47aab5573

Component: web-platform-tests → Layout: Flexbox
Product: Testing → Core
Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]

CI Results

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

Total 2 tests

Status Summary

Firefox

PASS: 2

Chrome

FAIL: 2

Safari

FAIL: 2

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/de381341fb93 [wpt PR 49695] - [flex] Break all items into flex-lines upfront., a=testonly
Status: NEW → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 135 Branch
You need to log in before you can comment on or make changes to this bug.