Closed Bug 1981872 Opened 6 months ago Closed 6 months ago

[wpt-sync] Sync PR 54203 - layout: Let `stretch` on flex item cross size stretch to the line

Categories

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

task

Tracking

()

RESOLVED FIXED
143 Branch
Tracking Status
firefox143 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

(Blocks 1 open bug, )

Details

(Whiteboard: [wptsync downstream])

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

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

Oriol Brufau <obrufau@igalia.com> wrote:

layout: Let stretch on flex item cross size stretch to the line

We were instead stretching to the containing block, which implied that the behaviors of a stretch size and stretch alignment weren't consistent.

As resolved by the CSSWG, the behavior will now be:

  • If the cross size of the line is known, stretch to the line.
  • Otherwise, stretch to the containing block.

See https://github.com/w3c/csswg-drafts/issues/11784

This aligns us with Blink, which has already shipped this new behavior.

Testing: improves existing WPT, and adding a new test

Reviewed in servo/servo#38526

Component: web-platform-tests → Layout: Flexbox
Product: Testing → Core

CI Results

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

Total 1290 tests and 12 subtests

Status Summary

Firefox

OK : 338
PASS: 24[Gecko-linux2204-64-wayland-debug, Gecko-linux2204-64-wayland-opt] 4348[Gecko-windows11-32-24h2-debug, Gecko-windows11-32-24h2-opt] 5241[Gecko-android-em-7.0-x86_64-lite-qr-opt-geckoview, Gecko-android-em-7.0-x86_64-qr-debug-geckoview, Gecko-android-em-7.0-x86_64-qr-opt-geckoview] 5245[Gecko-windows11-64-24h2-debug, Gecko-windows11-64-24h2-opt] 5246[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt]
FAIL: 1[GitHub] 137[Gecko-windows11-32-24h2-debug, Gecko-windows11-32-24h2-opt] 166[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt] 167[Gecko-windows11-64-24h2-debug, Gecko-windows11-64-24h2-opt] 168[Gecko-android-em-7.0-x86_64-lite-qr-opt-geckoview, Gecko-android-em-7.0-x86_64-qr-debug-geckoview, Gecko-android-em-7.0-x86_64-qr-opt-geckoview]

Chrome

PASS: 1

Safari

FAIL: 1

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

Tests Disabled in Gecko Infrastructure

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