3 <link href=
"resources/grid.css" rel=
"stylesheet">
6 grid-template-columns:
5px;
7 grid-template-rows:
5px;
44 <script src=
"../../resources/check-layout.js"></script>
45 <body onload=
"checkLayout('.grid')">
47 <p>This test checks min-width|height auto behavior for grids
</p>
49 <div class=
"container">
51 <div class=
"ahem" data-expected-width=
"100" data-expected-height=
"25">XXXX
</div>
55 <div class=
"container">
57 <div class=
"ahem minSmaller" data-expected-width=
"10" data-expected-height=
"10">XXXX
</div>
61 <div class=
"container">
63 <div class=
"ahem minBigger" data-expected-width=
"150" data-expected-height=
"75">XXXX
</div>
67 <div class=
"container">
69 <div class=
"ahem maxSmaller" data-expected-width=
"10" data-expected-height=
"10">XXXX
</div>
73 <div class=
"container">
75 <div class=
"ahem maxBigger" data-expected-width=
"100" data-expected-height=
"25">XXXX
</div>
79 <!-- Verify that the same cases without 'stretch' work as expected as well. -->
80 <div class=
"container">
81 <div class=
"grid noStretch">
82 <div class=
"ahem" data-expected-width=
"100" data-expected-height=
"25">XXXX
</div>
86 <div class=
"container">
87 <div class=
"grid noStretch">
88 <div class=
"ahem minSmaller" data-expected-width=
"100" data-expected-height=
"25">XXXX
</div>
92 <div class=
"container">
93 <div class=
"grid noStretch">
94 <div class=
"ahem minBigger" data-expected-width=
"150" data-expected-height=
"75">XXXX
</div>
98 <div class=
"container">
99 <div class=
"grid noStretch">
100 <div class=
"ahem maxSmaller" data-expected-width=
"10" data-expected-height=
"10">XXXX
</div>
104 <div class=
"container">
105 <div class=
"grid noStretch">
106 <div class=
"ahem maxBigger" data-expected-width=
"100" data-expected-height=
"25">XXXX
</div>
110 <!-- Verify we are applying correctly the min-content size. -->
111 <div class=
"container">
113 <div class=
"ahem" data-expected-width=
"75" data-expected-height=
"50">XXX X
</div>
117 <div class=
"container">
118 <div class=
"grid noStretch">
119 <div class=
"ahem" data-expected-width=
"75" data-expected-height=
"50">XXX X
</div>