3 <link href=
"resources/grid.css" rel=
"stylesheet">
6 grid-template-columns:
50px
100px;
7 grid-template-rows: auto auto;
10 .gridFixedAutoContent {
11 grid-template-columns:
50px
100px;
12 grid-template-rows:
10px auto;
16 grid-template-columns:
50px
100px;
17 grid-template-rows: minmax(min-content,
50px) minmax(max-content,
140px);
21 grid-template-columns:
50px
100px;
22 grid-template-rows: minmax(
50px, min-content) minmax(
40px, max-content);
25 <script src=
"../../resources/check-layout.js"></script>
26 <body onload=
"checkLayout('.grid');">
28 <p>Test that resolving tracks on spanning grid items works properly.
</p>
30 <div class=
"constrainedContainer">
31 <div class=
"grid gridAutoAutoContent">
32 <div class=
"sizedToGridArea bothRowFirstColumn" data-expected-width=
"50" data-expected-height=
"30">XXXXX XXXXX XXXXX
</div>
33 <div class=
"sizedToGridArea firstRowFirstColumn" data-expected-width=
"50" data-expected-height=
"15"></div>
34 <div class=
"sizedToGridArea secondRowFirstColumn" data-expected-width=
"50" data-expected-height=
"15"></div>
38 <div class=
"constrainedContainer">
39 <div class=
"grid gridAutoAutoContent">
40 <div class=
"sizedToGridArea bothRowBothColumn" data-expected-width=
"150" data-expected-height=
"30">XXXXX XXXXX XXXXX XXXXX XXXXX
</div>
41 <div class=
"sizedToGridArea firstRowFirstColumn" data-expected-width=
"50" data-expected-height=
"15"></div>
42 <div class=
"sizedToGridArea secondRowFirstColumn" data-expected-width=
"50" data-expected-height=
"15"></div>
43 <div class=
"sizedToGridArea firstRowSecondColumn" data-expected-width=
"100" data-expected-height=
"15"></div>
44 <div class=
"sizedToGridArea secondRowSecondColumn" data-expected-width=
"100" data-expected-height=
"15"></div>
48 <!-- Allow the extra logical space distribution to occur. -->
49 <div style=
"width: 50px; height: 60px">
50 <div class=
"grid gridAutoAutoContent">
51 <div class=
"sizedToGridArea bothRowFirstColumn" data-expected-width=
"50" data-expected-height=
"30">XXXXX XXXXX XXXXX
</div>
52 <div class=
"sizedToGridArea firstRowFirstColumn" data-expected-width=
"50" data-expected-height=
"15"></div>
53 <div class=
"sizedToGridArea secondRowFirstColumn" data-expected-width=
"50" data-expected-height=
"15"></div>
57 <div style=
"width: 50px; height: 60px">
58 <div class=
"grid gridAutoAutoContent">
59 <div class=
"sizedToGridArea bothRowBothColumn" data-expected-width=
"150" data-expected-height=
"30">XXXXX XXXXX XXXXX XXXXX XXXXX
</div>
60 <div class=
"sizedToGridArea firstRowFirstColumn" data-expected-width=
"50" data-expected-height=
"15"></div>
61 <div class=
"sizedToGridArea secondRowFirstColumn" data-expected-width=
"50" data-expected-height=
"15"></div>
62 <div class=
"sizedToGridArea firstRowSecondColumn" data-expected-width=
"100" data-expected-height=
"15"></div>
63 <div class=
"sizedToGridArea secondRowSecondColumn" data-expected-width=
"100" data-expected-height=
"15"></div>
67 <div class=
"unconstrainedContainer">
68 <div class=
"grid gridAutoAutoContent">
69 <div class=
"sizedToGridArea bothRowFirstColumn" data-expected-width=
"50" data-expected-height=
"30">XXXXX XXXXX XXXXX
</div>
70 <div class=
"sizedToGridArea firstRowFirstColumn" data-expected-width=
"50" data-expected-height=
"15"></div>
71 <div class=
"sizedToGridArea secondRowFirstColumn" data-expected-width=
"50" data-expected-height=
"15"></div>
75 <div class=
"unconstrainedContainer">
76 <div class=
"grid gridAutoAutoContent">
77 <div class=
"sizedToGridArea bothRowBothColumn" data-expected-width=
"150" data-expected-height=
"30">XXXXX XXXXX XXXXX XXXXX XXXXX
</div>
78 <div class=
"sizedToGridArea firstRowFirstColumn" data-expected-width=
"50" data-expected-height=
"15"></div>
79 <div class=
"sizedToGridArea secondRowFirstColumn" data-expected-width=
"50" data-expected-height=
"15"></div>
80 <div class=
"sizedToGridArea firstRowSecondColumn" data-expected-width=
"100" data-expected-height=
"15"></div>
81 <div class=
"sizedToGridArea secondRowSecondColumn" data-expected-width=
"100" data-expected-height=
"15"></div>
85 <div class=
"constrainedContainer">
86 <div class=
"grid gridFixedAutoContent">
87 <div class=
"sizedToGridArea bothRowFirstColumn" data-expected-width=
"50" data-expected-height=
"30">XXXXX XXXXX XXXXX
</div>
88 <div class=
"sizedToGridArea firstRowFirstColumn" data-expected-width=
"50" data-expected-height=
"10"></div>
89 <div class=
"sizedToGridArea secondRowFirstColumn" data-expected-width=
"50" data-expected-height=
"20"></div>
93 <div class=
"constrainedContainer">
94 <div class=
"grid gridFixedAutoContent">
95 <div class=
"sizedToGridArea bothRowBothColumn" data-expected-width=
"150" data-expected-height=
"30">XXXXX XXXXX XXXXX XXXXX XXXXX
</div>
96 <div class=
"sizedToGridArea firstRowFirstColumn" data-expected-width=
"50" data-expected-height=
"10"></div>
97 <div class=
"sizedToGridArea secondRowFirstColumn" data-expected-width=
"50" data-expected-height=
"20"></div>
98 <div class=
"sizedToGridArea firstRowSecondColumn" data-expected-width=
"100" data-expected-height=
"10"></div>
99 <div class=
"sizedToGridArea secondRowSecondColumn" data-expected-width=
"100" data-expected-height=
"20"></div>
103 <!-- Allow the extra logical space distribution to occur. -->
104 <div style=
"width: 50px; height: 60px">
105 <div class=
"grid gridFixedAutoContent">
106 <div class=
"sizedToGridArea bothRowFirstColumn" data-expected-width=
"50" data-expected-height=
"30">XXXXX XXXXX XXXXX
</div>
107 <div class=
"sizedToGridArea firstRowFirstColumn" data-expected-width=
"50" data-expected-height=
"10"></div>
108 <div class=
"sizedToGridArea secondRowFirstColumn" data-expected-width=
"50" data-expected-height=
"20"></div>
112 <div style=
"width: 50px; height: 60px">
113 <div class=
"grid gridFixedAutoContent">
114 <div class=
"sizedToGridArea bothRowBothColumn" data-expected-width=
"150" data-expected-height=
"30">XXXXX XXXXX XXXXX XXXXX XXXXX
</div>
115 <div class=
"sizedToGridArea firstRowFirstColumn" data-expected-width=
"50" data-expected-height=
"10"></div>
116 <div class=
"sizedToGridArea secondRowFirstColumn" data-expected-width=
"50" data-expected-height=
"20"></div>
117 <div class=
"sizedToGridArea firstRowSecondColumn" data-expected-width=
"100" data-expected-height=
"10"></div>
118 <div class=
"sizedToGridArea secondRowSecondColumn" data-expected-width=
"100" data-expected-height=
"20"></div>
122 <div class=
"unconstrainedContainer">
123 <div class=
"grid gridFixedAutoContent">
124 <div class=
"sizedToGridArea bothRowFirstColumn" data-expected-width=
"50" data-expected-height=
"30">XXXXX XXXXX XXXXX
</div>
125 <div class=
"sizedToGridArea firstRowFirstColumn" data-expected-width=
"50" data-expected-height=
"10"></div>
126 <div class=
"sizedToGridArea secondRowFirstColumn" data-expected-width=
"50" data-expected-height=
"20"></div>
130 <div class=
"unconstrainedContainer">
131 <div class=
"grid gridFixedAutoContent">
132 <div class=
"sizedToGridArea bothRowBothColumn" data-expected-width=
"150" data-expected-height=
"30">XXXXX XXXXX XXXXX XXXXX XXXXX
</div>
133 <div class=
"sizedToGridArea firstRowFirstColumn" data-expected-width=
"50" data-expected-height=
"10"></div>
134 <div class=
"sizedToGridArea secondRowFirstColumn" data-expected-width=
"50" data-expected-height=
"20"></div>
135 <div class=
"sizedToGridArea firstRowSecondColumn" data-expected-width=
"100" data-expected-height=
"10"></div>
136 <div class=
"sizedToGridArea secondRowSecondColumn" data-expected-width=
"100" data-expected-height=
"20"></div>
140 <div class=
"constrainedContainer">
141 <div class=
"grid gridMinMaxMin" style=
"height: 100%">
142 <div class=
"sizedToGridArea bothRowFirstColumn" data-expected-width=
"50" data-expected-height=
"30">XXXXX XXXXX XXXXX
</div>
143 <div class=
"sizedToGridArea firstRowFirstColumn" data-expected-width=
"50" data-expected-height=
"15"></div>
144 <div class=
"sizedToGridArea secondRowFirstColumn" data-expected-width=
"50" data-expected-height=
"15"></div>
148 <div class=
"constrainedContainer">
149 <div class=
"grid gridMinMaxMin">
150 <div class=
"sizedToGridArea bothRowFirstColumn" data-expected-width=
"50" data-expected-height=
"190">XXXXX XXXXX XXXXX
</div>
151 <div class=
"sizedToGridArea firstRowFirstColumn" data-expected-width=
"50" data-expected-height=
"50"></div>
152 <div class=
"sizedToGridArea secondRowFirstColumn" data-expected-width=
"50" data-expected-height=
"140"></div>
156 <div class=
"constrainedContainer">
157 <div class=
"grid gridMinMaxMin" style=
"height: 100%">
158 <div class=
"sizedToGridArea bothRowBothColumn" data-expected-width=
"150" data-expected-height=
"30">XXXXX XXXXX XXXXX XXXXX XXXXX
</div>
159 <div class=
"sizedToGridArea firstRowFirstColumn" data-expected-width=
"50" data-expected-height=
"15"></div>
160 <div class=
"sizedToGridArea secondRowFirstColumn" data-expected-width=
"50" data-expected-height=
"15"></div>
161 <div class=
"sizedToGridArea firstRowSecondColumn" data-expected-width=
"100" data-expected-height=
"15"></div>
162 <div class=
"sizedToGridArea secondRowSecondColumn" data-expected-width=
"100" data-expected-height=
"15"></div>
166 <div class=
"constrainedContainer">
167 <div class=
"grid gridMinMaxMin">
168 <div class=
"sizedToGridArea bothRowBothColumn" data-expected-width=
"150" data-expected-height=
"190">XXXXX XXXXX XXXXX XXXXX XXXXX
</div>
169 <div class=
"sizedToGridArea firstRowFirstColumn" data-expected-width=
"50" data-expected-height=
"50"></div>
170 <div class=
"sizedToGridArea secondRowFirstColumn" data-expected-width=
"50" data-expected-height=
"140"></div>
171 <div class=
"sizedToGridArea firstRowSecondColumn" data-expected-width=
"100" data-expected-height=
"50"></div>
172 <div class=
"sizedToGridArea secondRowSecondColumn" data-expected-width=
"100" data-expected-height=
"140"></div>
176 <!-- Allow the extra logical space distribution to occur. -->
177 <div style=
"width: 50px; height: 60px">
178 <div class=
"grid gridMinMaxMin" style=
"height: 100%">
179 <div class=
"sizedToGridArea bothRowFirstColumn" data-expected-width=
"50" data-expected-height=
"60">XXXXX XXXXX XXXXX
</div>
180 <div class=
"sizedToGridArea firstRowFirstColumn" data-expected-width=
"50" data-expected-height=
"30"></div>
181 <div class=
"sizedToGridArea secondRowFirstColumn" data-expected-width=
"50" data-expected-height=
"30"></div>
185 <div style=
"width: 50px; height: 60px">
186 <div class=
"grid gridMinMaxMin">
187 <div class=
"sizedToGridArea bothRowFirstColumn" data-expected-width=
"50" data-expected-height=
"190">XXXXX XXXXX XXXXX
</div>
188 <div class=
"sizedToGridArea firstRowFirstColumn" data-expected-width=
"50" data-expected-height=
"50"></div>
189 <div class=
"sizedToGridArea secondRowFirstColumn" data-expected-width=
"50" data-expected-height=
"140"></div>
193 <div style=
"width: 50px; height: 60px">
194 <div class=
"grid gridMinMaxMin" style=
"height: 100%">
195 <div class=
"sizedToGridArea bothRowBothColumn" data-expected-width=
"150" data-expected-height=
"60">XXXXX XXXXX XXXXX XXXXX XXXXX
</div>
196 <div class=
"sizedToGridArea firstRowFirstColumn" data-expected-width=
"50" data-expected-height=
"30"></div>
197 <div class=
"sizedToGridArea secondRowFirstColumn" data-expected-width=
"50" data-expected-height=
"30"></div>
198 <div class=
"sizedToGridArea firstRowSecondColumn" data-expected-width=
"100" data-expected-height=
"30"></div>
199 <div class=
"sizedToGridArea secondRowSecondColumn" data-expected-width=
"100" data-expected-height=
"30"></div>
203 <div style=
"width: 50px; height: 60px">
204 <div class=
"grid gridMinMaxMin">
205 <div class=
"sizedToGridArea bothRowBothColumn" data-expected-width=
"150" data-expected-height=
"190">XXXXX XXXXX XXXXX XXXXX XXXXX
</div>
206 <div class=
"sizedToGridArea firstRowFirstColumn" data-expected-width=
"50" data-expected-height=
"50"></div>
207 <div class=
"sizedToGridArea secondRowFirstColumn" data-expected-width=
"50" data-expected-height=
"140"></div>
208 <div class=
"sizedToGridArea firstRowSecondColumn" data-expected-width=
"100" data-expected-height=
"50"></div>
209 <div class=
"sizedToGridArea secondRowSecondColumn" data-expected-width=
"100" data-expected-height=
"140"></div>
213 <div class=
"unconstrainedContainer">
214 <div class=
"grid gridMinMaxMin">
215 <div class=
"sizedToGridArea bothRowFirstColumn" data-expected-width=
"50" data-expected-height=
"190">XXXXX XXXXX XXXXX
</div>
216 <div class=
"sizedToGridArea firstRowFirstColumn" data-expected-width=
"50" data-expected-height=
"50"></div>
217 <div class=
"sizedToGridArea secondRowFirstColumn" data-expected-width=
"50" data-expected-height=
"140"></div>
221 <div class=
"unconstrainedContainer">
222 <div class=
"grid gridMinMaxMin">
223 <div class=
"sizedToGridArea bothRowBothColumn" data-expected-width=
"150" data-expected-height=
"190">XXXXX XXXXX XXXXX XXXXX XXXXX
</div>
224 <div class=
"sizedToGridArea firstRowFirstColumn" data-expected-width=
"50" data-expected-height=
"50"></div>
225 <div class=
"sizedToGridArea secondRowFirstColumn" data-expected-width=
"50" data-expected-height=
"140"></div>
226 <div class=
"sizedToGridArea firstRowSecondColumn" data-expected-width=
"100" data-expected-height=
"50"></div>
227 <div class=
"sizedToGridArea secondRowSecondColumn" data-expected-width=
"100" data-expected-height=
"140"></div>
231 <div class=
"constrainedContainer">
232 <div class=
"grid gridMinMaxMax">
233 <div class=
"sizedToGridArea bothRowFirstColumn" data-expected-width=
"50" data-expected-height=
"90">XXXXX XXXXX XXXXX
</div>
234 <div class=
"sizedToGridArea firstRowFirstColumn" data-expected-width=
"50" data-expected-height=
"50"></div>
235 <div class=
"sizedToGridArea secondRowFirstColumn" data-expected-width=
"50" data-expected-height=
"40"></div>
239 <div class=
"constrainedContainer">
240 <div class=
"grid gridMinMaxMax">
241 <div class=
"sizedToGridArea bothRowBothColumn" data-expected-width=
"150" data-expected-height=
"90">XXXXX XXXXX XXXXX XXXXX XXXXX
</div>
242 <div class=
"sizedToGridArea firstRowFirstColumn" data-expected-width=
"50" data-expected-height=
"50"></div>
243 <div class=
"sizedToGridArea secondRowFirstColumn" data-expected-width=
"50" data-expected-height=
"40"></div>
244 <div class=
"sizedToGridArea firstRowSecondColumn" data-expected-width=
"100" data-expected-height=
"50"></div>
245 <div class=
"sizedToGridArea secondRowSecondColumn" data-expected-width=
"100" data-expected-height=
"40"></div>
249 <!-- Allow the extra logical space distribution to occur. -->
250 <div style=
"width: 50px; height: 60px">
251 <div class=
"grid gridMinMaxMax">
252 <div class=
"sizedToGridArea bothRowFirstColumn" data-expected-width=
"50" data-expected-height=
"90">XXXXX XXXXX XXXXX
</div>
253 <div class=
"sizedToGridArea firstRowFirstColumn" data-expected-width=
"50" data-expected-height=
"50"></div>
254 <div class=
"sizedToGridArea secondRowFirstColumn" data-expected-width=
"50" data-expected-height=
"40"></div>
258 <div style=
"width: 50px; height: 60px">
259 <div class=
"grid gridMinMaxMax">
260 <div class=
"sizedToGridArea bothRowBothColumn" data-expected-width=
"150" data-expected-height=
"90">XXXXX XXXXX XXXXX XXXXX XXXXX
</div>
261 <div class=
"sizedToGridArea firstRowFirstColumn" data-expected-width=
"50" data-expected-height=
"50"></div>
262 <div class=
"sizedToGridArea secondRowFirstColumn" data-expected-width=
"50" data-expected-height=
"40"></div>
263 <div class=
"sizedToGridArea firstRowSecondColumn" data-expected-width=
"100" data-expected-height=
"50"></div>
264 <div class=
"sizedToGridArea secondRowSecondColumn" data-expected-width=
"100" data-expected-height=
"40"></div>
268 <div class=
"unconstrainedContainer">
269 <div class=
"grid gridMinMaxMax">
270 <div class=
"sizedToGridArea bothRowFirstColumn" data-expected-width=
"50" data-expected-height=
"90">XXXXX XXXXX XXXXX
</div>
271 <div class=
"sizedToGridArea firstRowFirstColumn" data-expected-width=
"50" data-expected-height=
"50"></div>
272 <div class=
"sizedToGridArea secondRowFirstColumn" data-expected-width=
"50" data-expected-height=
"40"></div>
276 <div class=
"unconstrainedContainer">
277 <div class=
"grid gridMinMaxMax">
278 <div class=
"sizedToGridArea bothRowBothColumn" data-expected-width=
"150" data-expected-height=
"90">XXXXX XXXXX XXXXX XXXXX XXXXX
</div>
279 <div class=
"sizedToGridArea firstRowFirstColumn" data-expected-width=
"50" data-expected-height=
"50"></div>
280 <div class=
"sizedToGridArea secondRowFirstColumn" data-expected-width=
"50" data-expected-height=
"40"></div>
281 <div class=
"sizedToGridArea firstRowSecondColumn" data-expected-width=
"100" data-expected-height=
"50"></div>
282 <div class=
"sizedToGridArea secondRowSecondColumn" data-expected-width=
"100" data-expected-height=
"40"></div>