Chromium Code Reviews| OLD | NEW |
|---|---|
| (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 | |
| OLD | NEW |