summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-break/grid/monolithic-overflow-005.html
blob: 069ffb5b212e4b3316485422a423c6aad7a878f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<!DOCTYPE html>
<link rel="author" title="Morten Stenshorne" href="mailto:mstensho@chromium.org">
<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1425077">
<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>
<!-- Check that monolithic overflow in one grid item doesn't mess up the other item. -->
<div style="columns:4; gap:0; column-fill:auto; width:100px; height:100px; background:green;">
  <div style="display:grid; grid-template-columns:1fr 1fr; grid-template-rows:200px auto;">
    <div style="background:red;">
      <div style="height:200px; background:green;"></div>
    </div>
    <div style="background:red;">
      <div style="height:200px; background:green;"></div>
    </div>
    <div>
      <div style="contain:size; height:150px;"></div>
    </div>
    <div style="background:red;">
      <div style="height:200px; background:green;"></div>
    </div>
  </div>
</div>