summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-grid/subgrid/dynamic-min-content-002.html
blob: 04c5d143d9947bfdda50aca131c0adde095b7135 (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-rows: subgrid; writing-mode: vertical-rl;">
    <div id="target" style="writing-mode: horizontal-tb; width: 50px;"></div>
  </div>
</div>
<script>
document.body.offsetTop;
document.getElementById('target').style.width = '100px';
</script>