Closed Bug 1699575 Opened 4 years ago Closed 4 years ago

[wpt-sync] Sync PR 28142 - [flex] Don't stretch orthog. flex-items in column flexboxes.

Categories

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

task

Tracking

()

RESOLVED FIXED
89 Branch
Tracking Status
firefox89 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

b'Ian Kilpatrick <ikilpatrick@chromium.org>' wrote:

[flex] Don't stretch orthog. flex-items in column flexboxes.

Delete code - pass tests!

"!ShouldItemShrinkToFit()" was returning true for an orthogonal item
within a column flexbox. This in turn was getting it to stretch when
it shouldn't have. We now already set the "stretch" bit in the
appropriate places when stretching is occuring (previously stretch was
the default, not shrink-to-fit).

This removes the bad branch, and the complicated ShouldItemShrinkToFit()
function!

Bug: 1189046
Change-Id: Ib4b8762ce2999fe3690f9aa16d1925de53ce13a6

Reviewed-on: https://chromium-review.googlesource.com/2773659
WPT-Export-Revision: 17ba20470cb608b0b7f940f027f7188dfffc982a

Component: web-platform-tests → Layout: Flexbox
Product: Testing → Core
Test result changes from PR not available.
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/0a5cb86d2a05 [wpt PR 28142] - [flex] Don't stretch orthog. flex-items in column flexboxes., a=testonly
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 89 Branch
You need to log in before you can comment on or make changes to this bug.