absolute-tables-007.html (542B)
1 <!DOCTYPE html> 2 <link rel="help" href="https://crbug.com/903224"> 3 <link rel="match" href="../reference/ref-filled-green-100px-square.xht"> 4 <meta name="assert" content="A positioned absolute table should resolve its %-height against its containing block."> 5 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p> 6 <div style="position:relative; width:100px;"> 7 <div style="position:absolute; display:table; width:100%; height:100%; background:green;"></div> 8 <div style="height:100px; background:red;"></div> 9 </div>