3 <link href=
"resources/grid.css" rel=
"stylesheet">
6 grid-template-columns:
50px
100px
150px
200px;
7 grid-template-rows:
50px
100px
150px
200px;
10 .unconstrainedContainer {
11 /* For accurate x / y offset. */
15 <script src=
"../../resources/check-layout.js"></script>
16 <body onload=
"checkLayout('.grid')">
18 <p>This test checks that the auto-placement algorithm is sparse by default.
</p>
20 <div class=
"unconstrainedContainer">
22 <div class=
"sizedToGridArea firstRowSecondColumn" data-offset-x=
"50" data-offset-y=
"0" data-expected-width=
"100" data-expected-height=
"50"></div>
23 <div class=
"sizedToGridArea autoRowAutoColumnSpanning2" data-offset-x=
"150" data-offset-y=
"0" data-expected-width=
"350" data-expected-height=
"50"></div>
24 <div class=
"sizedToGridArea autoRowAutoColumn" data-offset-x=
"0" data-offset-y=
"50" data-expected-width=
"50" data-expected-height=
"100"></div>
25 <div class=
"sizedToGridArea autoRowAutoColumnSpanning2" data-offset-x=
"50" data-offset-y=
"50" data-expected-width=
"250" data-expected-height=
"100"></div>
26 <div class=
"sizedToGridArea autoRowAutoColumnSpanning2" data-offset-x=
"0" data-offset-y=
"150" data-expected-width=
"150" data-expected-height=
"150"></div>
27 <div class=
"sizedToGridArea autoRowAutoColumn" data-offset-x=
"150" data-offset-y=
"150" data-expected-width=
"150" data-expected-height=
"150"></div>
31 <div class=
"unconstrainedContainer">
33 <div class=
"sizedToGridArea autoRowSecondColumn" data-offset-x=
"50" data-offset-y=
"0" data-expected-width=
"100" data-expected-height=
"50"></div>
34 <div class=
"sizedToGridArea autoRowAutoColumnSpanning2" data-offset-x=
"150" data-offset-y=
"0" data-expected-width=
"350" data-expected-height=
"50"></div>
35 <div class=
"sizedToGridArea autoRowFirstColumn" data-offset-x=
"0" data-offset-y=
"50" data-expected-width=
"50" data-expected-height=
"100"></div>
36 <div class=
"sizedToGridArea autoRowThirdColumn" data-offset-x=
"150" data-offset-y=
"50" data-expected-width=
"150" data-expected-height=
"100"></div>
37 <div class=
"sizedToGridArea autoRowAutoColumn" data-offset-x=
"300" data-offset-y=
"50" data-expected-width=
"200" data-expected-height=
"100"></div>
38 <div class=
"sizedToGridArea autoRowAutoColumn" data-offset-x=
"0" data-offset-y=
"150" data-expected-width=
"50" data-expected-height=
"150"></div>
39 <div class=
"sizedToGridArea autoRowSpanning2AutoColumnSpanning3" data-offset-x=
"50" data-offset-y=
"150" data-expected-width=
"450" data-expected-height=
"350"></div>
40 <div class=
"sizedToGridArea autoRowAutoColumn" data-offset-x=
"0" data-offset-y=
"300" data-expected-width=
"50" data-expected-height=
"200"></div>
44 <div class=
"unconstrainedContainer">
46 <div class=
"sizedToGridArea firstRowAutoColumn" data-offset-x=
"0" data-offset-y=
"0" data-expected-width=
"50" data-expected-height=
"50"></div>
47 <div class=
"sizedToGridArea secondRowAutoColumn" data-offset-x=
"0" data-offset-y=
"50" data-expected-width=
"50" data-expected-height=
"100"></div>
48 <div class=
"sizedToGridArea autoRowSecondColumn" data-offset-x=
"50" data-offset-y=
"0" data-expected-width=
"100" data-expected-height=
"50"></div>
49 <div class=
"sizedToGridArea autoRowFirstColumn" data-offset-x=
"0" data-offset-y=
"150" data-expected-width=
"50" data-expected-height=
"150"></div>
50 <div class=
"sizedToGridArea autoRowAutoColumn" data-offset-x=
"50" data-offset-y=
"150" data-expected-width=
"100" data-expected-height=
"150"></div>
54 <div class=
"unconstrainedContainer">
56 <div class=
"sizedToGridArea autoRowFirstColumn" data-offset-x=
"0" data-offset-y=
"150" data-expected-width=
"50" data-expected-height=
"150"></div>
57 <div class=
"sizedToGridArea firstRowSecondColumn" data-offset-x=
"50" data-offset-y=
"0" data-expected-width=
"100" data-expected-height=
"50"></div>
58 <div class=
"sizedToGridArea secondRowAutoColumn" data-offset-x=
"0" data-offset-y=
"50" data-expected-width=
"50" data-expected-height=
"100"></div>
59 <div class=
"sizedToGridArea firstRowAutoColumn" data-offset-x=
"0" data-offset-y=
"0" data-expected-width=
"50" data-expected-height=
"50"></div>
60 <div class=
"sizedToGridArea autoRowAutoColumn" data-offset-x=
"50" data-offset-y=
"150" data-expected-width=
"100" data-expected-height=
"150"></div>
64 <div class=
"unconstrainedContainer">
65 <div class=
"grid gridAutoFlowColumnSparse">
66 <div class=
"sizedToGridArea secondRowFirstColumn" data-offset-x=
"0" data-offset-y=
"50" data-expected-width=
"50" data-expected-height=
"100"></div>
67 <div class=
"sizedToGridArea autoRowSpanning2AutoColumn" data-offset-x=
"0" data-offset-y=
"150" data-expected-width=
"50" data-expected-height=
"350"></div>
68 <div class=
"sizedToGridArea autoRowAutoColumn" data-offset-x=
"50" data-offset-y=
"0" data-expected-width=
"100" data-expected-height=
"50"></div>
69 <div class=
"sizedToGridArea autoRowSpanning2AutoColumn" data-offset-x=
"50" data-offset-y=
"50" data-expected-width=
"100" data-expected-height=
"250"></div>
70 <div class=
"sizedToGridArea autoRowSpanning2AutoColumn" data-offset-x=
"150" data-offset-y=
"0" data-expected-width=
"150" data-expected-height=
"150"></div>
71 <div class=
"sizedToGridArea autoRowAutoColumn" data-offset-x=
"150" data-offset-y=
"150" data-expected-width=
"150" data-expected-height=
"150"></div>
75 <div class=
"unconstrainedContainer">
76 <div class=
"grid gridAutoFlowColumnSparse">
77 <div class=
"sizedToGridArea secondRowAutoColumn" data-offset-x=
"0" data-offset-y=
"50" data-expected-width=
"50" data-expected-height=
"100"></div>
78 <div class=
"sizedToGridArea autoRowSpanning2AutoColumn" data-offset-x=
"0" data-offset-y=
"150" data-expected-width=
"50" data-expected-height=
"350"></div>
79 <div class=
"sizedToGridArea firstRowAutoColumn" data-offset-x=
"50" data-offset-y=
"0" data-expected-width=
"100" data-expected-height=
"50"></div>
80 <div class=
"sizedToGridArea thirdRowAutoColumn" data-offset-x=
"50" data-offset-y=
"150" data-expected-width=
"100" data-expected-height=
"150"></div>
81 <div class=
"sizedToGridArea autoRowAutoColumn" data-offset-x=
"50" data-offset-y=
"300" data-expected-width=
"100" data-expected-height=
"200"></div>
82 <div class=
"sizedToGridArea autoRowAutoColumn" data-offset-x=
"150" data-offset-y=
"0" data-expected-width=
"150" data-expected-height=
"50"></div>
83 <div class=
"sizedToGridArea autoRowSpanning3AutoColumnSpanning2" data-offset-x=
"150" data-offset-y=
"50" data-expected-width=
"350" data-expected-height=
"450"></div>
84 <div class=
"sizedToGridArea autoRowAutoColumn" data-offset-x=
"300" data-offset-y=
"0" data-expected-width=
"200" data-expected-height=
"50"></div>
88 <div class=
"unconstrainedContainer">
89 <div class=
"grid gridAutoFlowColumnSparse">
90 <div class=
"sizedToGridArea autoRowFirstColumn" data-offset-x=
"0" data-offset-y=
"0" data-expected-width=
"50" data-expected-height=
"50"></div>
91 <div class=
"sizedToGridArea autoRowSecondColumn" data-offset-x=
"50" data-offset-y=
"0" data-expected-width=
"100" data-expected-height=
"50"></div>
92 <div class=
"sizedToGridArea secondRowAutoColumn" data-offset-x=
"0" data-offset-y=
"50" data-expected-width=
"50" data-expected-height=
"100"></div>
93 <div class=
"sizedToGridArea firstRowAutoColumn" data-offset-x=
"150" data-offset-y=
"0" data-expected-width=
"150" data-expected-height=
"50"></div>
94 <div class=
"sizedToGridArea autoRowAutoColumn" data-offset-x=
"150" data-offset-y=
"50" data-expected-width=
"150" data-expected-height=
"100"></div>
98 <div class=
"unconstrainedContainer">
99 <div class=
"grid gridAutoFlowColumnSparse">
100 <div class=
"sizedToGridArea firstRowAutoColumn" data-offset-x=
"150" data-offset-y=
"0" data-expected-width=
"150" data-expected-height=
"50"></div>
101 <div class=
"sizedToGridArea secondRowFirstColumn" data-offset-x=
"0" data-offset-y=
"50" data-expected-width=
"50" data-expected-height=
"100"></div>
102 <div class=
"sizedToGridArea autoRowSecondColumn" data-offset-x=
"50" data-offset-y=
"0" data-expected-width=
"100" data-expected-height=
"50"></div>
103 <div class=
"sizedToGridArea autoRowFirstColumn" data-offset-x=
"0" data-offset-y=
"0" data-expected-width=
"50" data-expected-height=
"50"></div>
104 <div class=
"sizedToGridArea autoRowAutoColumn" data-offset-x=
"150" data-offset-y=
"50" data-expected-width=
"150" data-expected-height=
"100"></div>