Files
sousa-gecko/testing/web-platform/tests/css/css-grid/alignment/grid-gutters-explicit-placement-ref.html
T
Yulun Wu 29841b243d Bug 2047781 [wpt PR 60646] - WebKit export of https://bugs.webkit.org/show_bug.cgi?id=317138, a=testonly
Automatic update from web-platform-tests
WebKit export of https://bugs.webkit.org/show_bug.cgi?id=317138 (#60646)
--

wpt-commits: e1242b376e20f32b3f4ffe6c97e6ac975a221b0c
wpt-pr: 60646
2026-06-18 14:40:11 +00:00

43 lines
1.1 KiB
HTML

<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Grid Layout Reference: a 3x3 grid of blue squares on a green background</title>
<link rel="author" title="Yulun Wu" href="mailto:yulun_wu@apple.com">
<style>
#grid {
width: 310px;
height: 310px;
background-color: green;
position: relative;
}
#grid > div {
background-color: blue;
width: 90px;
height: 90px;
position: absolute;
}
#grid :nth-child(1) { top: 0; left: 0; }
#grid :nth-child(2) { top: 0; left: 110px; }
#grid :nth-child(3) { top: 0; left: 220px; }
#grid :nth-child(4) { top: 110px; left: 0; }
#grid :nth-child(5) { top: 110px; left: 110px; }
#grid :nth-child(6) { top: 110px; left: 220px; }
#grid :nth-child(7) { top: 220px; left: 0; }
#grid :nth-child(8) { top: 220px; left: 110px; }
#grid :nth-child(9) { top: 220px; left: 220px; }
</style>
<p>The test passes if it has the same visual effect as reference.</p>
<div id="grid">
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
</div>