summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-flexbox/grid-flex-item-005.html
blob: 95c57d1429e5de2a138571435134152c2c33561b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<!DOCTYPE html>
<link rel="help" href="https://crbug.com/1108928">
<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">
  <div style="display: flex; flex-direction: column">
    <div style="display: grid; height: 0; flex: 1; grid-template-rows: minmax(100px, 200%);">
      <div style="background: green;"></div>
    </div>
  </div>
</div>
<script>
document.body.offsetTop;
document.getElementById('target').style.width = '100px';
</script>