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

Unified Diff: third_party/WebKit/LayoutTests/fast/css/containment/layout-containment-sizing.html

Issue 1530303003: Implement Layout Containment (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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/LayoutTests/fast/css/containment/layout-containment-sizing-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/fast/css/containment/layout-containment-sizing.html
diff --git a/third_party/WebKit/LayoutTests/fast/css/containment/layout-containment-sizing.html b/third_party/WebKit/LayoutTests/fast/css/containment/layout-containment-sizing.html
new file mode 100644
index 0000000000000000000000000000000000000000..2c4b96d7a6fdd01d375985accb239a617afe541d
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/css/containment/layout-containment-sizing.html
@@ -0,0 +1,53 @@
+<!DOCTYPE html>
+<style>
+.containLayout {
+ contain: strict;
+ background-color: green;
+}
+.sized {
+ height: 10px;
+ width: 10px;
+}
+.overhangingFloat {
+ float: left;
+ width: 10px;
+ height: 50px;
+ background-color: papayawhip;
+}
+.inlineBlock {
+ display: inline-block;
+}
+#absolute {
+ position: absolute;
+ left: 200px;
+ top: 100px;
+ width: 10px;
+}
+</style>
+
+<div class="containLayout" data-expected-height=0><div class="sized"></div></div>
+
+<div class="containLayout sized" data-expected-height=10><div class="overhangingFloat"></div></div>
+
+<div class="testContainer" data=expected-height=0>
+ <div class="containLayout" data-expected-height=0><div class="overhangingFloat"></div></div>
+</div>
+
+<div class="testContainer" data=expected-height=0>
+ <div class="containLayout inlineBlock" data-expected-height=0><div class="overhangingFloat"></div></div>
+</div>
+
+<div class="testContainer" data=expected-height=10>
+ <div class="containLayout inlineBlock sized" data-expected-height=10><div class="overhangingFloat"></div></div>
+</div>
+
+<div id="absolute">
szager1 2015/12/16 23:46:23 Might be a good idea to do another test case like
+ <div class="overhangingFloat"></div>
+ <div class="containLayout sized" data-offset-y=50></div>
+</div>
+
+<script src="../../../resources/check-layout.js"></script>
+<script>
+checkLayout('.containLayout');
+checkLayout('.testContainer');
+</script>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/css/containment/layout-containment-sizing-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698