summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-grid/subgrid/dynamic-min-content-001.html
blob: 97fa9b132737f96b7490c1aca29ddacdc261a143 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
<!DOCTYPE html>
<link rel="help" href="https://drafts.csswg.org/css-grid-2/">
<link rel="match" href="../../reference/ref-filled-green-100px-square.xht">
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
<div style="display: grid; height: 100px; width: min-content; background: green;">
  <div style="display: grid; grid-template-columns: subgrid;">
    <div id="target" style="width: 50px;"></div>
  </div>
</div>
<script>
document.body.offsetTop;
document.getElementById('target').style.width = '100px';
</script>