3 <link href=
"resources/grid.css" rel=
"stylesheet">
7 grid-template-columns:
100px
200px;
8 grid-template-rows:
50px
150px;
11 border:
5px solid black;
14 /* Ensures that the grid container is the containing block of the absolutely positioned grid children. */
28 background-color: green;
49 background-color: red;
54 <p>This test checks that the background of positioned items is painted in the right position.
</p>
56 <p>The test passes if you see
4 green boxes and no red.
</p>
58 <div class=
"container">
59 <div class=
"absolute red" style=
"left: 55px; top: 50px; width: 100px; height: 50px"></div>
60 <div class=
"absolute red" style=
"left: 290px; top: 50px; width: 50px; height: 20px"></div>
61 <div class=
"absolute red" style=
"left: 50px; top: 115px; width: 50px; height: 30px"></div>
62 <div class=
"absolute red" style=
"left: 175px; top: 135px; width: 145px; height: 75px"></div>
64 <div class=
"absolute onlyFirstRowOnlyFirstColumn sizedToGridArea"
67 <div class=
"absolute onlyFirstRowOnlySecondColumn lengthSize"
70 <div class=
"absolute onlySecondRowOnlyFirstColumn percentageSize"
73 <div class=
"absolute onlySecondRowOnlySecondColumn offsetsSize"></div>