floats-placement-002.html (1096B)
1 <!DOCTYPE html> 2 <link rel="match" href="../../reference/ref-filled-green-100px-square.xht"> 3 <link rel="help" href="https://drafts.csswg.org/css2/visuren.html#float-position"> 4 <meta name="assert" content="This test checks placement of inflow content with floats present." /> 5 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p> 6 <div style="width: 100px; height: 100px; background: red; position: relative;"> 7 <div style="float: left; width: 20px;"></div> 8 <div style="line-height: 0;"> 9 <div style="display: inline-block; width: 100px; height: 20px; background: green;"></div> 10 </div> 11 <div style="float: right; width: 20px; height: 80px; background: green;"></div> 12 <div style="float: right; clear: right; width: 30px; clear: right;"></div> 13 <div style="display: inline-block; width: 60px; height: 60px; background: green;"></div> 14 <div style="position: absolute; width: 20px; height: 80px; background: green; top: 20px; right: 20px;"></div> 15 <div style="position: absolute; width: 60px; height: 20px; background: green; bottom: 0; left: 0;"></div> 16 </div>