percent-height-overflow-auto-in-restricted-block-size-cell.html (822B)
1 <!DOCTYPE html> 2 <link rel="author" title="Morten Stenshorne" href="mailto:mstensho@chromium.org"> 3 <link rel="help" href="https://drafts.csswg.org/css-tables-3/#row-layout"> 4 <style> 5 .table { display:table; height:100px; background:pink; } 6 .cell { overflow:auto; width:100px; height:100%; background:blue; } 7 </style> 8 <p>There should be a 100px tall pink block below, with a scrollable box inside.</p> 9 <div id="container" class="table" data-expected-height="100"> 10 <div class="cell" data-expected-height="100" data-expected-scroll-height="500"> 11 <div style="width:100px; height:500px;"></div> 12 </div> 13 </div> 14 <script src="/resources/testharness.js"></script> 15 <script src="/resources/testharnessreport.js"></script> 16 <script src="/resources/check-layout-th.js"></script> 17 <script> 18 checkLayout("#container"); 19 </script>