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-height-quirks-001.html - WPT Dashboard Interop Dashboard
<script src='/resources/testharness.js'></script>
<script src='/resources/testharnessreport.js'></script>
<script src='/resources/check-layout-th.js'></script>
<meta name="assert" content="Absolutely positioned table with height: 100% should not stretch to the viewport in quirks mode.">
<style>
.table {
position: absolute;
background: orange;
border-spacing: 0;
}
td {
padding: 0;
}
</style>
<output id="log"></output>
<!-- height: 100% with auto-height containing block should not stretch to viewport -->
<div style="position: relative; width: 100px;">
<table class="table" style="width: 100%; height: 100%;" data-expected-width=100 data-expected-height=40>
<tr><td><div style="height: 40px;"></div></td></tr>
</table>
</div>
<script>
checkLayout(".table");
</script>