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

Unified Diff: third_party/WebKit/LayoutTests/css3/flexbox/flex-item-contains-strict.html

Issue 2216903004: [css-flexbox] Correctly implement contain: size on a flex item (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 4 years, 4 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/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/flex-item-contains-strict.html
diff --git a/third_party/WebKit/LayoutTests/css3/flexbox/flex-item-contains-strict.html b/third_party/WebKit/LayoutTests/css3/flexbox/flex-item-contains-strict.html
new file mode 100644
index 0000000000000000000000000000000000000000..a11aae65482f5f8a0dd601ea9cad8b1c4c94a3fb
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/css3/flexbox/flex-item-contains-strict.html
@@ -0,0 +1,49 @@
+<!DOCTYPE html>
+
+<style>
+.inline-flex {
+ display: inline-flex;
+ outline: solid;
+ background: red;
+}
+</style>
+
+<script src="../../resources/testharness.js"></script>
+<script src="../../resources/testharnessreport.js"></script>
+<script src="../../resources/check-layout-th.js"></script>
+
+<body onload="checkLayout('.inline-flex')">
+<p>Stretched:</p>
+<div class="inline-flex" style="display: inline-flex; flex-direction: column;" data-expected-width="0" data-expected-height="0">
+ <div style="contain: strict;" data-expected-width="0" data-expected-height="0">Column</div>
+</div>
+
+<div class="inline-flex" data-expected-width="0" data-expected-height="0">
+ <div style="contain: strict;" data-expected-width="0" data-expected-height="0">Row</div>
+</div>
+
+<div class="inline-flex" style="display: inline-flex; flex-direction: column;" data-expected-width="30" data-expected-height="30">
+ <div style="contain: strict; width: 30px; height: 30px;" data-expected-width="30" data-expected-height="30">Column</div>
+</div>
+
+<div class="inline-flex" style="display: inline-flex;" data-expected-width="30" data-expected-height="30">
+ <div style="contain: strict; width: 30px; height: 30px;" data-expected-width="30" data-expected-height="30">Row</div>
+</div>
+
+
+<p>Flex-start:</p>
+<div class="inline-flex" style="flex-direction: column; align-items: flex-start;" data-expected-width="0" data-expected-height="0">
+ <div style="contain: strict;" data-expected-width="0" data-expected-height="0">Column</div>
+</div>
+
+<div class="inline-flex" style="align-items: flex-start;" data-expected-width="0" data-expected-height="0">
+ <div style="contain: strict;" data-expected-width="0" data-expected-height="0">Row</div>
+</div>
+
+<div class="inline-flex" style="flex-direction: column; align-items: flex-start;" data-expected-width="30" data-expected-height="30">
+ <div style="contain: strict; width: 30px; height: 30px;" data-expected-width="30" data-expected-height="30">Column</div>
+</div>
+
+<div class="inline-flex" style="align-items: flex-start;" data-expected-width="30" data-expected-height="30">
+ <div style="contain: strict; width: 30px; height: 30px;" data-expected-width="30" data-expected-height="30">Row</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