Bug 1640014 [wpt PR 23735] - [AspectRatio] Correctly handle a stretched item in a...
commitb699b840579d126ad686356add54312a581e47c7
authorChristian Biesinger <cbiesinger@chromium.org>
Sat, 30 May 2020 09:49:45 +0000 (30 09:49 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Mon, 1 Jun 2020 14:03:12 +0000 (1 14:03 +0000)
tree62ace85297f9fd10293871d80f59eaae9bb3f5d7
parent17dccaf35d2ffa555ca7536798605f5fc09781bd
Bug 1640014 [wpt PR 23735] - [AspectRatio] Correctly handle a stretched item in a fixed height flexbox, a=testonly

Automatic update from web-platform-tests
[AspectRatio] Correctly handle a stretched item in a fixed height flexbox

With a fixed-height single-line flex container, a stretched item should be
considered to have a definite height and thus should have its aspect-ratio
calculated from that:
https://drafts.csswg.org/css-flexbox/#definite-sizes item 1

This patch limits this behavior to the CSS aspect-ratio property for now
(as opposed to supporting it for everything with an aspect ratio, like
images), to limit the behavior differences from pre-FlexNG Blink.

Bug: 1083020
Change-Id: I2abe33d49a8727857a28e47ba6344ad3da860cad
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2212984
Commit-Queue: Christian Biesinger <cbiesinger@chromium.org>
Auto-Submit: Christian Biesinger <cbiesinger@chromium.org>
Reviewed-by: David Grogan <dgrogan@chromium.org>
Cr-Commit-Position: refs/heads/master@{#771863}

--

wpt-commits: 0d155d5c685a2c22f2e3ec5f976f31c1f2180c20
wpt-pr: 23735
testing/web-platform/tests/css/css-sizing/aspect-ratio/flex-aspect-ratio-009.tentative.html [new file with mode: 0644]