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

Unified Diff: third_party/WebKit/LayoutTests/fast/block/margin-collapse/clear-nested-float-more-than-one-previous-sibling-away.html

Issue 1393533002: Clear floats that are nested in previous siblings and don't overhang. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated Created 5 years, 2 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/fast/block/margin-collapse/clear-nested-float-more-than-one-previous-sibling-away.html
diff --git a/third_party/WebKit/LayoutTests/fast/block/margin-collapse/clear-nested-float-more-than-one-previous-sibling-away.html b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/clear-nested-float-more-than-one-previous-sibling-away.html
new file mode 100644
index 0000000000000000000000000000000000000000..a3443d0d4d9c7d019f7bb0f31a8c7603820ded57
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/clear-nested-float-more-than-one-previous-sibling-away.html
@@ -0,0 +1,47 @@
+<!DOCTYPE html>
+<style>
+html, body { margin: 0; padding: 0 }
+#float {
+ float: right;
+ background: green;
+ width: 100px;
+ height: 50px;
+}
+
+#test {
+ width: 100px;
+ height: 50px;
+ overflow: hidden;
+ margin-top: -50px;
+ background: green;
+}
+
+.clear {
+ display: block;
+ clear: both;
+ height: 0px;
+}
+
+#red {
+ position:absolute;
+ width:100px;
+ height:100px;
+ background-color: red;
+ top:0px;
+ z-index: -1;
+}
+</style>
+<div id="red"></div>
+<div style="width: 100px;">
+ <div>
+ <div id="float"></div>
+ <div class="clear">Test</div>
+ </div>
+ <div>Test</div>
+</div>
+<div id="test" data-offset-y=50></div>
+<script src="../../../resources/check-layout.js"></script>
+<script>
+window.checkLayout("#test", document.getElementById("test-output"));
+</script>
+<p>crbug.com/535381 : Clear floats nested in earlier siblings. There should be a green box and no red.</p>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/block/margin-collapse/clear-nested-float-more-than-one-previous-sibling-away-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698