summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-grid/grid-items/percentage-margin-dynamic.html
blob: ed1edc4ba6f9302f2e77bff0b5c96f2ab6ae0350 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
<!DOCTYPE html>
<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1126609">
<link rel="match" href="../../reference/ref-filled-green-100px-square-only.html">
<p>Test passes if there is a filled green square.</p>
<div id="target" style="display: grid; width: 100px; height: 200px; background: green;">
  <div style="margin: 50%; color: green;">FAIL</div>
</div>
<script>
document.body.offsetTop;
document.getElementById('target').style.height = '100px';
</script>