Closed Bug 1829582 Opened 2 years ago Closed 2 years ago

[wpt-sync] Sync PR 39658 - [css-flex] Disable fixed-table's infinite size for intrinsic flex sizing

Categories

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

task

Tracking

()

RESOLVED FIXED
115 Branch
Tracking Status
firefox115 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

David Grogan <dgrogan@chromium.org> wrote:

[css-flex] Disable fixed-table's infinite size for intrinsic flex sizing

A fixed-table's intrinsic max-content is ~infinite when it has a
%-width. That's been around for a while and ships in all browsers.

But it is problematic for the new flex intrinsic sizing algorithm
because now the infinity percolates up to the flex container's
min-content size[1]. We obviously don't want a min-content size of
infinity and gmail relies on the old behavior.

So this is a hacky patch that makes fixed-tables max-content size be the
same as auto-tables when an ancestor flex table is calculating its
intrinsic sizes. It will probably be web compatible, but unsure.

This affects both the min and max intrinsic size of the flex container.

[1] New flex min-content algorithm accounts for item's flex base sizes.
A %-width fixed-table's flex base size is its max-content size, which,
as mentioned above, is ~infinity.

Change-Id: I7010fa73df8e88a4812b23780e5d58a3f63da730
Bug: 240765

Reviewed-on: https://chromium-review.googlesource.com/4420422
WPT-Export-Revision: 83297b3034d77972a9a4c00b9cc46f0d59416518

Component: web-platform-tests → Layout: Tables
Product: Testing → Core
Try push failed: decision task RxYcI2T7RE27cjaOTk83XA returned error
Try push failed: decision task CZUhLuBHTPqlWPR4p-Ioyg returned error

CI Results

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

Total 1 tests and 8 subtests

Status Summary

Firefox

OK : 1
PASS: 8

Chrome

OK : 1
PASS: 8

Safari

OK : 1
PASS: 8

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/d4d8e34d1139 [wpt PR 39658] - [css-flex] Disable fixed-table's infinite size for intrinsic flex sizing, a=testonly
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 115 Branch
You need to log in before you can comment on or make changes to this bug.