Bug 1699575 [wpt PR 28142] - [flex] Don't stretch orthog. flex-items in column flexbo...
commite5c55bdafabf8bc632cba9177f59452dc3aeed81
authorIan Kilpatrick <ikilpatrick@chromium.org>
Sat, 27 Mar 2021 11:03:06 +0000 (27 11:03 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Sat, 27 Mar 2021 17:41:01 +0000 (27 17:41 +0000)
tree293c787396401b2aa5cc9aa11aa2acbf6a22dc86
parent2efddc7690ec2bc65e219e1aab1f0aa783ec7231
Bug 1699575 [wpt PR 28142] - [flex] Don't stretch orthog. flex-items in column flexboxes., a=testonly

Automatic update from web-platform-tests
[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 occurring (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/c/chromium/src/+/2773659
Commit-Queue: Ian Kilpatrick <ikilpatrick@chromium.org>
Reviewed-by: David Grogan <dgrogan@chromium.org>
Cr-Commit-Position: refs/heads/master@{#865412}

--

wpt-commits: 8ef74b8cba8d1a335485378efc67ab135bdf05c8
wpt-pr: 28142
testing/web-platform/tests/css/css-flexbox/flexbox_align-items-center-3.html [new file with mode: 0644]