fune/testing/web-platform/tests/css/css-tables/absolute-tables-005.html
Daniel Smith d72932489b Bug 1746965 [wpt PR 32151] - Remove empty css flags tags from the css directory (non-CSS2) (8/8), a=testonly
Automatic update from web-platform-tests
Remove empty css flags tags from the css directory (non-CSS2) (8/8) (#32151)

* remove empty flags tags from the (non CSS2) css directories

* remove extra spaces from merge
--

wpt-commits: 5e295079d07ef43bdd9fe1ccea9b59067fc5ae46
wpt-pr: 32151
2022-02-05 11:48:51 +00:00

78 lines
1.8 KiB
HTML

<!doctype html>
<script src='/resources/testharness.js'></script>
<script src='/resources/testharnessreport.js'></script>
<script src='/resources/check-layout-th.js'></script>
<link rel="author" title="David Grogan" href="mailto:dgrogan@chromium.org">
<link rel="help" href="https://www.w3.org/TR/css-tables-3/#computing-the-table-height">
<meta name="assert" content="When sizing and positioning abspos tables, the specified height is obeyed when the intrinsic height is smaller" />
<style>
.cb {
position: relative;
height: 200px;
width: 200px;
outline: 2px dashed lightblue;
}
.table {
background-color: orange;
position: absolute;
height: 50px;
right: 0px;
}
.cell {
border: 1px solid green;
height: 100px;
}
.cell > div {
height: 20px;
}
.vertical { writing-mode: vertical-lr; }
.horizontal { writing-mode: horizontal-tb; }
</style>
<output id="log"></output>
<main>
<div class="cb">
<table class="table" data-expected-width=8 data-expected-height=108 data-offset-x="192">
<tr>
<td class="cell">
<div></div>
</td>
</tr>
</table>
</div>
<div class="cb vertical">
<table class="table horizontal" data-expected-width=8 data-expected-height=108 data-offset-x="192">
<tr>
<td class="cell">
<div></div>
</td>
</tr>
</table>
</div>
<div class="cb">
<table class="table vertical" data-expected-width=8 data-expected-height=50 data-offset-x="192">
<tr>
<td class="cell">
<div></div>
</td>
</tr>
</table>
</div>
<div class="cb vertical">
<table class="table vertical" data-expected-width=8 data-expected-height=50 data-offset-x="192">
<tr>
<td class="cell">
<div></div>
</td>
</tr>
</table>
</div>
</main>
<script>
checkLayout(".table");
</script>