Closed Bug 1958006 Opened 18 days ago Closed 11 days ago

[wpt-sync] Sync PR 51801 - layout: Restrict stretch alignment to flex items with computed auto size

Categories

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

task

Tracking

()

RESOLVED FIXED
139 Branch
Tracking Status
firefox139 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Oriol Brufau <obrufau@igalia.com> wrote:

layout: Restrict stretch alignment to flex items with computed auto size

We were allowing align-self: stretch to stretch flex items whose cross size behaves as auto, including cyclic percentages.

However, https://github.com/w3c/csswg-drafts/issues/4525 resolved that stretching should only happen when the cross size computes to auto.

So this patch exposes this information in ContentBoxSizesAndPBM, and refactors the flexbox stretching logic.

Testing: ?????
Fixes: #<!-- nolink -->36285

Reviewed in servo/servo#36288

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

CI Results

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

Total 1 tests

Status Summary

Firefox

PASS: 1

Chrome

PASS: 1

Safari

PASS: 1

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/b8060e6d55f0 [wpt PR 51801] - layout: Restrict stretch alignment to flex items with computed auto size, a=testonly
Status: NEW → RESOLVED
Closed: 11 days ago
Resolution: --- → FIXED
Target Milestone: --- → 139 Branch
You need to log in before you can comment on or make changes to this bug.