summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-break/grid/grid-item-oof-004.html
blob: f73d91a1927d9b6cf5ccceda4a31c7ab79ef5496 (plain)
1
2
3
4
5
6
7
8
9
10
11
<!DOCTYPE html>
<link rel="help" href="https://drafts.csswg.org/css-grid-1/#pagination">
<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="columns: 2; height: 100px; width: 100px; column-gap: 0; column-fill: auto; background: red;">
  <div style="position: relative; display: grid; height: 200px; grid-template-rows: 50px 100px;">
    <div style="position: absolute; background: green; width: 50px; height: 100px;"></div>
    <div style="grid-row-start: 2; break-before: column; height: 50px; background: green;"></div> <!-- break-before pushes this row into the 2nd column. -->
    <div style="grid-row-start: 2; position: absolute; width: 50px; height: 50px; background: green; align-self: end;"></div>
  </div>
</div>