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

Unified Diff: third_party/WebKit/LayoutTests/css3/flexbox/percentage-max-width-cross-axis.html

Issue 2585423002: [css-flexbox] Pass correct available width to constrainLogicalWidthByMinMax (Closed)
Patch Set: Created 4 years 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/LayoutFlexibleBox.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/percentage-max-width-cross-axis.html
diff --git a/third_party/WebKit/LayoutTests/css3/flexbox/percentage-max-width-cross-axis.html b/third_party/WebKit/LayoutTests/css3/flexbox/percentage-max-width-cross-axis.html
new file mode 100644
index 0000000000000000000000000000000000000000..edb7fb27d03df5832f17850491477429ae08a7d0
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/css3/flexbox/percentage-max-width-cross-axis.html
@@ -0,0 +1,22 @@
+<!DOCTYPE html>
+
+<link rel="stylesheet" href="resources/flexbox.css">
+
+<script src="../../resources/testharness.js"></script>
+<script src="../../resources/testharnessreport.js"></script>
+<script src="../../resources/check-layout-th.js"></script>
+
+<body onload="checkLayout('.flexbox')">
+
+<p>Both bars should be the same width</p>
+<div class="flexbox column" style="width: 400px;">
+ <div data-expected-width="200" style="margin-left: 50%; width: 50%; background: green;">
+ Content
+ </div>
+</div>
+
+<div class="flexbox column" style="width: 400px;">
+ <div data-expected-width="200" style="margin-left: 50%; max-width: 50%; background: blue;">
+ Content
+ </div>
+</div>
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/LayoutFlexibleBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698