[css-flex] Update two incorrect aspect-ratio tests
Blink passes new 002 but fails new 004. Fixing 004 is crbug.com/1261306
Firefox fails both new tests. Long discussion with firefox about this at
https://github.com/web-platform-tests/wpt/commit/21a7c47ad593720b0fed693390884bf8570a8d0c
Fixed: 1251788
Change-Id: I772b4deab856ecf12e5e686fe9d9f65c82db5866
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3265549
Reviewed-by: Christian Biesinger <cbiesinger@chromium.org>
Commit-Queue: David Grogan <dgrogan@chromium.org>
Cr-Commit-Position: refs/heads/main@{#939610}
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 68cb9cf..e426a77 100644
--- a/css/css-sizing/aspect-ratio/flex-aspect-ratio-002.html
+++ b/css/css-sizing/aspect-ratio/flex-aspect-ratio-002.html
@@ -10,8 +10,9 @@
<div style="display: flex;">
<!-- No transferred size suggestion since the flex item is non-replaced.
- Content size suggestion is 100px. -->
+ Content size suggestion is 50px because 50px is item's min-content size. -->
<div style="background: green; height: 100px; aspect-ratio: 1/2; flex-basis: 0;">
<div style="width: 100px;"></div>
</div>
+ <div style="background: green; height: 100px; width: 50px;"></div>
</div>
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 2633f49..b86b577 100644
--- a/css/css-sizing/aspect-ratio/flex-aspect-ratio-004.html
+++ b/css/css-sizing/aspect-ratio/flex-aspect-ratio-004.html
@@ -8,9 +8,10 @@
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
+<div style="background: green; width: 100px; height:50px;"></div>
<div style="display: flex; flex-direction: column;">
<!-- No transferred size suggestion since the flex item is non-replaced.
- Content size suggestion is 100px. -->
+ Content size suggestion is 50px because min-content size is 50px. -->
<div style="background: green; width: 100px; aspect-ratio: 2/1; flex-basis: 0;">
<div style="height: 100px;"></div>
</div>