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

Unified Diff: third_party/WebKit/LayoutTests/css3/flexbox/resize-min-content-flexbox.html

Issue 1971053003: Use new intrinsic content height when computing min-height: min-content (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review comment Created 4 years, 7 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/LayoutBox.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/css3/flexbox/resize-min-content-flexbox.html
diff --git a/third_party/WebKit/LayoutTests/css3/flexbox/resize-min-content-flexbox.html b/third_party/WebKit/LayoutTests/css3/flexbox/resize-min-content-flexbox.html
new file mode 100644
index 0000000000000000000000000000000000000000..10ef1b3e83ce67d35b0ee649df75be1f9f013910
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/css3/flexbox/resize-min-content-flexbox.html
@@ -0,0 +1,38 @@
+<!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>
+
+<style>
+body, html {
+ height: 100%;
+ margin: 0;
+}
+
+.flexbox.column {
+ min-height: min-content;
+ background: green;
+ height: 100%;
+}
+
+#content {
+ height: 1000px;
+ max-height: 100%;
+}
+</style>
+
+<div id="log"></div>
+
+<div class="flexbox column justify-content-center align-items-center" data-expected-height="100">
+ <div id="content" data-expected-height="100"></div>
+</div>
+
+<script>
+ document.body.offsetHeight;
+ document.documentElement.style.height = '100px';
+
+ checkLayout('.flexbox');
+</script>
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/LayoutBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698