replaced-next-to-float-1.html (884B)
1 <!DOCTYPE html> 2 <link rel="author" title="Oriol Brufau" href="obrufau@igalia.com"> 3 <link rel="help" href="https://drafts.csswg.org/css-sizing-4/#stretch-fit-sizing"> 4 <link rel="help" href="https://github.com/w3c/csswg-drafts/issues/4028"> 5 <link rel="help" href="https://github.com/servo/servo/issues/37861"> 6 <link rel="match" href="../../reference/ref-filled-green-100px-square.xht"> 7 <style> 8 #reference-overlapped-red { 9 position: absolute; 10 background-color: red; 11 width: 100px; 12 height: 100px; 13 z-index: -1; 14 } 15 </style> 16 17 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p> 18 <div id="reference-overlapped-red"></div> 19 20 <div style="width:200px; margin-left: -100px;"> 21 <div style="float: left; width: 100px; height: 100px;"></div> 22 <canvas width="1" height="1" style="display: block; width: stretch; background: green"></canvas> 23 </div>