From 21a7c47ad593720b0fed693390884bf8570a8d0c Mon Sep 17 00:00:00 2001 From: Ting-Yu Lin Date: Fri, 30 Apr 2021 20:53:44 +0000 Subject: [PATCH] Compute transferred size suggestion only if a flex item is a replaced element. If the flex item is a non-replaced element and its min-width/min-height is 'auto', the spec has changed so that it has no transferred size suggestion now. https://drafts.csswg.org/css-flexbox-1/#min-size-auto This patch also updates WPT tests to fix https://github.com/web-platform-tests/wpt/issues/27878 Differential Revision: https://phabricator.services.mozilla.com/D112830 bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1703304 gecko-commit: fb14e6d29a44a79efc296cc727f92aa58ea4dacc gecko-reviewers: dholbert --- .../aspect-ratio/flex-aspect-ratio-002.html | 9 +-- .../aspect-ratio/flex-aspect-ratio-004.html | 9 +-- .../aspect-ratio/flex-aspect-ratio-025.html | 42 +++++++++----- .../aspect-ratio/flex-aspect-ratio-026.html | 58 ++++++++++++------- 4 files changed, 75 insertions(+), 43 deletions(-) diff --git a/css/css-sizing/aspect-ratio/flex-aspect-ratio-002.html b/css/css-sizing/aspect-ratio/flex-aspect-ratio-002.html index d7714f07e774ba..68cb9cf5693984 100644 --- a/css/css-sizing/aspect-ratio/flex-aspect-ratio-002.html +++ b/css/css-sizing/aspect-ratio/flex-aspect-ratio-002.html @@ -2,15 +2,16 @@ CSS aspect-ratio: Row flexbox min-width +

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

- -
-
+ +
+
diff --git a/css/css-sizing/aspect-ratio/flex-aspect-ratio-004.html b/css/css-sizing/aspect-ratio/flex-aspect-ratio-004.html index 05b569ac607185..2633f493a87c70 100644 --- a/css/css-sizing/aspect-ratio/flex-aspect-ratio-004.html +++ b/css/css-sizing/aspect-ratio/flex-aspect-ratio-004.html @@ -2,15 +2,16 @@ CSS aspect-ratio: Column flexbox min-height +

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

- -
-
+ +
+
diff --git a/css/css-sizing/aspect-ratio/flex-aspect-ratio-025.html b/css/css-sizing/aspect-ratio/flex-aspect-ratio-025.html index c4ff8110d7bed7..bf8daaa35f08a4 100644 --- a/css/css-sizing/aspect-ratio/flex-aspect-ratio-025.html +++ b/css/css-sizing/aspect-ratio/flex-aspect-ratio-025.html @@ -4,6 +4,8 @@ + +

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

+ +
+ yielding a resolved flex base size (border-box) of 200px. -->
- -
+ +
- -
+ +
- -
+ +
+
+
+ yielding a resolved flex base size (content-box) of 190px. -->
- -
+ +
- -
+ +
- -
+ +
+
+