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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <style>
3 html, body { margin: 0; padding: 0 }
4 #float {
5 float: right;
6 background: green;
7 width: 100px;
8 height: 50px;
9 }
10
11 #test {
12 width: 100px;
13 height: 50px;
14 overflow: hidden;
15 margin-top: -50px;
16 background: green;
17 }
18
19 .clear {
20 display: block;
21 clear: both;
22 height: 0px;
23 }
24
25 #red {
26 position:absolute;
27 width:100px;
28 height:100px;
29 background-color: red;
30 top:0px;
31 z-index: -1;
32 }
33 </style>
34 <div id="red"></div>
35 <div style="width: 100px;">
36 <div>
37 <div id="float"></div>
38 <div class="clear">Test</div>
39 </div>
40 <div>Test</div>
41 </div>
42 <div id="test" data-offset-y=50></div>
43 <script src="../../../resources/check-layout.js"></script>
44 <script>
45 window.checkLayout("#test", document.getElementById("test-output"));
46 </script>
47 <p>crbug.com/535381 : Clear floats nested in earlier siblings. There should be a green box and no red.</p>
OLDNEW
« 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