negative-margin-float-positioning.html (536B)
1 <!DOCTYPE html> 2 <link rel="help" href="https://www.w3.org/TR/CSS22/visudet.html#float-width" title="10.3.5 Floating, non-replaced elements"> 3 <link rel="match" href="../../reference/ref-filled-green-100px-square-only.html"> 4 <p>Test passes if there is a filled green square.</p> 5 <div style="width: 100px;"> 6 <div style="float: left; width: 50px; height: 100px; margin-left: 50px; margin-right: 50px;background: green;"></div> 7 <div style="float: left; width: 50px; height: 100px; margin-left: -150px; background: green;"></div> 8 </div>