summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-grid/abspos/positioned-grid-items-018.html
blob: 0c9d21642ef828911c04d937c48052bf297baaf3 (plain)
1
2
3
4
5
6
7
<!DOCTYPE html>
<link rel="help" href="https://drafts.csswg.org/css-grid/#abspos">
<link rel="match" href="../../reference/ref-filled-green-100px-square-only.html">
<p>Test passes if there is a filled green square.</p>
<div style="display: grid; grid-template-columns: 200px; grid-template-rows: 200px; max-width: 100px; max-height: 100px; position: relative;">
  <div style="background: green; position: absolute; width: 100%; height: 100%;"></div>
</div>