dynamic-table-cell-height.html (689B)
1 <!DOCTYPE html> 2 <html class="reftest-wait"> 3 <link rel="match" href="/css/reference/ref-filled-green-100px-square.xht"> 4 <link rel="help" href="https://crbug.com/968016"> 5 <script src="/common/reftest-wait.js"></script> 6 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p> 7 <div style="display: table-cell; background: red; height: 50px;"> 8 <div style="width: 100px; height: 100px; background: green; position: relative;"> 9 <div id="target" style="position: absolute; width: 10px; height: 10px;"></div> 10 </div> 11 </div> 12 <script> 13 document.body.offsetTop; 14 document.getElementById('target').style.top = '10px'; 15 document.body.offsetTop; 16 takeScreenshot(); 17 </script>