| OLD | NEW | 
|---|
| (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> | 
| OLD | NEW | 
|---|