summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-grid/subgrid/dynamic-min-content-003.html
blob: 625d83485c69487b47e95afd8996617d9e0326c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<!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-rows: subgrid; writing-mode: vertical-rl;">
    <div style="display: grid; grid-template-columns: subgrid; writing-mode: horizontal-tb;">
      <div id="target" style="width: 50px;">
    </div>
  </div>
</div>
<script>
document.body.offsetTop;
document.getElementById('target').style.width = '100px';
</script>