From b699b840579d126ad686356add54312a581e47c7 Mon Sep 17 00:00:00 2001 From: Christian Biesinger Date: Sat, 30 May 2020 09:49:45 +0000 Subject: [PATCH] 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 Auto-Submit: Christian Biesinger Reviewed-by: David Grogan Cr-Commit-Position: refs/heads/master@{#771863} -- wpt-commits: 0d155d5c685a2c22f2e3ec5f976f31c1f2180c20 wpt-pr: 23735 --- .../aspect-ratio/flex-aspect-ratio-009.tentative.html | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 testing/web-platform/tests/css/css-sizing/aspect-ratio/flex-aspect-ratio-009.tentative.html diff --git a/testing/web-platform/tests/css/css-sizing/aspect-ratio/flex-aspect-ratio-009.tentative.html b/testing/web-platform/tests/css/css-sizing/aspect-ratio/flex-aspect-ratio-009.tentative.html new file mode 100644 index 000000000000..cb76e0d7bd1d --- /dev/null +++ b/testing/web-platform/tests/css/css-sizing/aspect-ratio/flex-aspect-ratio-009.tentative.html @@ -0,0 +1,13 @@ + +CSS aspect-ratio: Row flexbox main size + + + + + + +

Test passes if there is a filled green square and no red.

+ +
+
+
-- 2.11.4.GIT