Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(326)

Unified Diff: third_party/WebKit/LayoutTests/css3/flexbox/minimum-size-image.html

Issue 1639723003: [css-flexbox] Use correct aspect ratio for min-size: auto (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review comments Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/css3/flexbox/minimum-size-image.html
diff --git a/third_party/WebKit/LayoutTests/css3/flexbox/minimum-size-image.html b/third_party/WebKit/LayoutTests/css3/flexbox/minimum-size-image.html
new file mode 100644
index 0000000000000000000000000000000000000000..1840859dbad0556eaa672595ce15f9490f6a0f49
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/css3/flexbox/minimum-size-image.html
@@ -0,0 +1,70 @@
+<!DOCTYPE html>
+
+<link href="resources/flexbox.css" rel="stylesheet">
+<script src="../../resources/testharness.js"></script>
+<script src="../../resources/testharnessreport.js"></script>
+<script src="../../resources/check-layout-th.js"></script>
+
+<body onload="checkLayout('.flexbox')">
+<div id=log></div>
+
+<div class="flexbox" style="width: 10px;" data-expected-width="10">
+ <!-- should use content width, clamped by converted max-height, as minimum width. -->
+ <img src="../images/resources/green-100.png" style="max-height: 5px;"
+ data-expected-width="5" data-expected-height="5">
+</div>
+
+<div class="flexbox" style="width: 10px;" data-expected-width="10">
+ <!-- should use min(specified, content width) = 10px as minimum width,
+ which the image will shrink to due to default flex-shrink. -->
+ <img src="../images/resources/green-10.png" style="width: 100px;" data-expected-width="10">
+</div>
+
+
+<div class="flexbox" style="width: 10px;" data-expected-width="10">
+ <!-- should use content width, clamped by converted min-height, as minimum width. -->
+ <img src="../images/resources/green-100.png" style="max-height: 5px;"
+ data-expected-width="5" data-expected-height="5">
+</div>
+
+<div class="flexbox" style="width: 10px;" data-expected-width="10">
+ <!-- should use content width, clamped by converted min-height, as minimum width. -->
+ <img src="../images/resources/green-100.png" style="max-height: 5px; min-height: 10px;"
+ data-expected-width="10" data-expected-height="10">
+</div>
+
+<div class="flexbox" style="width: 10px;" data-expected-width="10">
+ <!-- should use min(transferred, content width) = 10px as minimum width,
+ which the image will shrink to due to default flex-shrink. -->
+ <img src="../images/resources/green-10.png" style="height: 100px;" data-expected-width="10">
+</div>
+
+<div class="flexbox column" style="height: 10px;" data-expected-height="10">
+ <!-- should use content height, clamped by converted max-width, as minimum height. -->
+ <img src="../images/resources/green-100.png" style="max-width: 5px;"
+ data-expected-width="5" data-expected-height="5">
+</div>
+
+<div class="flexbox column" style="height: 10px;" data-expected-height="10">
+ <!-- should use min(specified, content height) = 10px as minimum height,
+ which the image will shrink to due to default flex-shrink. -->
+ <img src="../images/resources/green-10.png" style="height: 100px;" data-expected-height="10">
+</div>
+
+<div class="flexbox" style="height: 10px;" data-expected-height="10">
+ <!-- should use content height, clamped by converted min-height, as minimum height. -->
+ <img src="../images/resources/green-100.png" style="max-height: 5px;"
+ data-expected-height="5" data-expected-height="5">
+</div>
+
+<div class="flexbox" style="height: 10px;" data-expected-height="10">
+ <!-- should use content height, clamped by converted min-width, as minimum height. -->
+ <img src="../images/resources/green-100.png" style="max-width: 5px; min-width: 10px;"
+ data-expected-height="10" data-expected-width="10">
+</div>
+
+<div class="flexbox column" style="height: 10px;" data-expected-height="10">
+ <!-- should use min(transferred, content height) = 10px as minimum height,
+ which the image will shrink to due to default flex-shrink. -->
+ <img src="../images/resources/green-10.png" style="width: 100px;" data-expected-height="10">
+</div>
« no previous file with comments | « third_party/WebKit/LayoutTests/TestExpectations ('k') | third_party/WebKit/Source/core/layout/LayoutFlexibleBox.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698