adjoining-floats-dynamic.html (860B)
1 <!DOCTYPE html> 2 <link rel="match" href="../../reference/ref-filled-green-100px-square.xht"> 3 <link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1003558"> 4 <style> 5 #target { 6 height: 50px; 7 width: 0; 8 background: green; 9 float: right; 10 } 11 12 span { 13 float: left; 14 width: 50px; 15 height: 50px; 16 background: green; 17 } 18 </style> 19 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p> 20 <div style="display: flow-root; width: 100px; background: red;"> 21 <div id="target"></div> 22 <div style="position: absolute; width: 50px; height: 50px; background: green;"></div> 23 <div> 24 <div style="clear: both; height: 10px;"> 25 <div> 26 <span></span> 27 <span></span> 28 </div> 29 </div> 30 </div> 31 </div> 32 <script> 33 document.body.offsetTop; 34 document.getElementById('target').style.width = '50px'; 35 </script>