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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/block/float/block-with-negative-margin-clears-float.html

Issue 1766223002: Clear floats even when they are not tracked by a previous sibling (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/block/float/block-with-negative-margin-clears-float-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <style>
3 #container {
4 width: 100px;
5 }
6
7 .float {
8 float: right;
9 height: 50px;
10 width: 100%;
11 background: green;
12 }
13
14 #clear {
15 clear: both;
16 height: 1px;
17 }
18
19 #next {
20 margin-top: -50px;
21 line-height: 0;
22 }
23
24 span {
25 display: inline-block;
26 width: 100%;
27 height: 50px;
28 background: green;
29 }
30 </style>
31 <p>crbug.com/591243: Clear floats when we have negative margin and are separated from the float by a div that doesn't track it.</p>
32 <div id="container" data-expected-height=100>
33 <div class="float"></div>
34 <div id="clear"></div>
35 <div id="next">
36 <span></span>
37 </div>
38 </div>
39 <script src="../../../resources/check-layout.js"></script>
40 <script>
41 checkLayout("#container");
42 </script>
43
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/block/float/block-with-negative-margin-clears-float-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698