summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-tables/absolute-tables-006.html
blob: d5d2265c491435359a6e96df87b18460a7fa5355 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<!doctype html>
<link rel="author" title="David Grogan" href="mailto:dgrogan@chromium.org">
<link rel="help" href="https://www.w3.org/TR/css-position-3/#def-cb">
<link rel="match" href="../reference/ref-filled-green-100px-square-only.html">
<link rel="bookmark" href="https://crbug.com/977507" />
<meta name="assert" content="Abspos table works when it is dynamically added" />

<style>
table {
  border-spacing: 0px;
}
td {
  padding: 0px;
}
.outerTable {
  height: 100px;
  width: 100px;
  position: relative;
}
.innerTable {
  position: absolute;
  top: 0px;
  width: 100px;
  height: 100%;
  color: green;
  background: green;
}
</style>
<p>Test passes if there is a filled green square.</p>
<table class=outerTable>
  <td id=outerCell></td>
</table>
<script>
outerCell.innerHTML = "<table class=innerTable><td>some text</td></table>";
</script>