summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-tables/dynamic-table-cell-height.html
blob: f6cd48e5ba5616a499809293714fcbb5b5742489 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<!DOCTYPE html>
<html class="reftest-wait">
<link rel="match" href="/css/reference/ref-filled-green-100px-square.xht">
<link rel="help" href="https://crbug.com/968016">
<script src="/common/reftest-wait.js"></script>
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
<div style="display: table-cell; background: red; height: 50px;">
  <div style="width: 100px; height: 100px; background: green; position: relative;">
    <div id="target" style="position: absolute; width: 10px; height: 10px;"></div>
  </div>
</div>
<script>
document.body.offsetTop;
document.getElementById('target').style.top = '10px';
document.body.offsetTop;
takeScreenshot();
</script>