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/dynamic-table-cell-height.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<html class="reftest-wait">
<link rel="match" href="/css/reference/ref-filled-green-100px-square.xht">
<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>