Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-tables/absolute-tables-007.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<link rel="match" href="../reference/ref-filled-green-100px-square.xht">
<meta name="assert" content="A positioned absolute table should resolve its %-height against its containing block.">
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
<div style="position:relative; width:100px;">
<div style="position:absolute; display:table; width:100%; height:100%; background:green;"></div>
<div style="height:100px; background:red;"></div>
</div>