border-collapse-dynamic-oof.html (666B)
1 <!DOCTYPE html> 2 <link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1348154"> 3 <link rel="match" href="../reference/ref-filled-green-100px-square.xht"> 4 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p> 5 <div style="width: 100px; height: 100px; background: red;"> 6 <div style="display: table; border-collapse: collapse; border: solid green 50px; width: 0; height: 0;"> 7 <div style="display: table-cell; position: relative;"> 8 <div id="target" style="position: absolute;"></div> 9 </div> 10 </div> 11 </div> 12 <script> 13 document.body.offsetTop; 14 document.getElementById('target').style.top = '10px'; 15 </script>