OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <link href="resources/grid.css" rel="stylesheet"> |
| 3 <style> |
| 4 |
| 5 .grid { |
| 6 grid-auto-columns: 10px; |
| 7 grid-auto-rows: 10px; |
| 8 position: relative; |
| 9 } |
| 10 |
| 11 .oneColumnOneRow { |
| 12 grid-template-columns: 50px; |
| 13 grid-template-rows: 50px; |
| 14 } |
| 15 |
| 16 .twoColumnsOneRow { |
| 17 grid-template-columns: 50px 50px; |
| 18 grid-template-rows: 50px; |
| 19 } |
| 20 |
| 21 .oneColumnTwoRows { |
| 22 grid-template-columns: 50px; |
| 23 grid-template-rows: 50px 50px; |
| 24 } |
| 25 |
| 26 .twoColumnsTwoRows { |
| 27 grid-template-columns: 50px 50px; |
| 28 grid-template-rows: 50px 50px; |
| 29 } |
| 30 |
| 31 .oneColumnOneRowAreas { |
| 32 grid-template-areas: "a"; |
| 33 } |
| 34 |
| 35 .twoColumnsOneRowAreas { |
| 36 grid-template-areas: "a b"; |
| 37 } |
| 38 |
| 39 .oneColumnTwoRowsAreas { |
| 40 grid-template-areas: "a" |
| 41 "b"; |
| 42 } |
| 43 |
| 44 .twoColumnsTwoRowsAreas { |
| 45 grid-template-areas: "a b" |
| 46 "c d"; |
| 47 } |
| 48 |
| 49 </style> |
| 50 <script src="../../resources/testharness.js"></script> |
| 51 <script src="../../resources/testharnessreport.js"></script> |
| 52 <script src="../../resources/check-layout-th.js"></script> |
| 53 <body onload="checkLayout('.grid')"> |
| 54 <div id="log"></div> |
| 55 |
| 56 <p>Checks that the explicit grid size is set by the maximum of the grid-template
-columns|rows properties and grid-template-areas.</p> |
| 57 |
| 58 <div class="grid"> |
| 59 <div class="autoRowAutoColumn" |
| 60 data-offset-x="0" data-offset-y="0" data-expected-width="10" data-expect
ed-height="10"> |
| 61 </div> |
| 62 </div> |
| 63 |
| 64 <div class="grid oneColumnOneRow"> |
| 65 <div class="autoRowAutoColumn" |
| 66 data-offset-x="0" data-offset-y="0" data-expected-width="50" data-expect
ed-height="50"> |
| 67 </div> |
| 68 </div> |
| 69 |
| 70 <div class="grid oneColumnOneRowAreas"> |
| 71 <div class="autoRowAutoColumn" |
| 72 data-offset-x="0" data-offset-y="0" data-expected-width="10" data-expect
ed-height="10"> |
| 73 </div> |
| 74 </div> |
| 75 |
| 76 <div class="grid oneColumnTwoRows"> |
| 77 <div class="autoRowAutoColumn" |
| 78 data-offset-x="0" data-offset-y="0" data-expected-width="50" data-expect
ed-height="50"> |
| 79 </div> |
| 80 <div class="autoRowAutoColumn" |
| 81 data-offset-x="0" data-offset-y="50" data-expected-width="50" data-expec
ted-height="50"> |
| 82 </div> |
| 83 </div> |
| 84 |
| 85 <div class="grid oneColumnTwoRowsAreas"> |
| 86 <div class="autoRowAutoColumn" |
| 87 data-offset-x="0" data-offset-y="0" data-expected-width="10" data-expect
ed-height="10"> |
| 88 </div> |
| 89 <div class="autoRowAutoColumn" |
| 90 data-offset-x="0" data-offset-y="10" data-expected-width="10" data-expec
ted-height="10"> |
| 91 </div> |
| 92 </div> |
| 93 |
| 94 <div class="grid twoColumnsOneRow"> |
| 95 <div class="autoRowAutoColumn" |
| 96 data-offset-x="0" data-offset-y="0" data-expected-width="50" data-expect
ed-height="50"> |
| 97 </div> |
| 98 <div class="autoRowAutoColumn" |
| 99 data-offset-x="50" data-offset-y="0" data-expected-width="50" data-expec
ted-height="50"> |
| 100 </div> |
| 101 </div> |
| 102 |
| 103 <div class="grid twoColumnsOneRowAreas"> |
| 104 <div class="autoRowAutoColumn" |
| 105 data-offset-x="0" data-offset-y="0" data-expected-width="10" data-expect
ed-height="10"> |
| 106 </div> |
| 107 <div class="autoRowAutoColumn" |
| 108 data-offset-x="10" data-offset-y="0" data-expected-width="10" data-expec
ted-height="10"> |
| 109 </div> |
| 110 </div> |
| 111 |
| 112 <div class="grid twoColumnsTwoRows"> |
| 113 <div class="autoRowAutoColumn" |
| 114 data-offset-x="0" data-offset-y="0" data-expected-width="50" data-expect
ed-height="50"> |
| 115 </div> |
| 116 <div class="autoRowAutoColumn" |
| 117 data-offset-x="50" data-offset-y="0" data-expected-width="50" data-expec
ted-height="50"> |
| 118 </div> |
| 119 <div class="autoRowAutoColumn" |
| 120 data-offset-x="0" data-offset-y="50" data-expected-width="50" data-expec
ted-height="50"> |
| 121 </div> |
| 122 <div class="autoRowAutoColumn" |
| 123 data-offset-x="50" data-offset-y="50" data-expected-width="50" data-expe
cted-height="50"> |
| 124 </div> |
| 125 </div> |
| 126 |
| 127 <div class="grid twoColumnsTwoRowsAreas"> |
| 128 <div class="autoRowAutoColumn" |
| 129 data-offset-x="0" data-offset-y="0" data-expected-width="10" data-expect
ed-height="10"> |
| 130 </div> |
| 131 <div class="autoRowAutoColumn" |
| 132 data-offset-x="10" data-offset-y="0" data-expected-width="10" data-expec
ted-height="10"> |
| 133 </div> |
| 134 <div class="autoRowAutoColumn" |
| 135 data-offset-x="0" data-offset-y="10" data-expected-width="10" data-expec
ted-height="10"> |
| 136 </div> |
| 137 <div class="autoRowAutoColumn" |
| 138 data-offset-x="10" data-offset-y="10" data-expected-width="10" data-expe
cted-height="10"> |
| 139 </div> |
| 140 </div> |
| 141 |
| 142 <div class="grid oneColumnOneRow twoColumnsTwoRowsAreas"> |
| 143 <div class="autoRowAutoColumn" |
| 144 data-offset-x="0" data-offset-y="0" data-expected-width="50" data-expect
ed-height="50"> |
| 145 </div> |
| 146 <div class="autoRowAutoColumn" |
| 147 data-offset-x="50" data-offset-y="0" data-expected-width="10" data-expec
ted-height="50"> |
| 148 </div> |
| 149 <div class="autoRowAutoColumn" |
| 150 data-offset-x="0" data-offset-y="50" data-expected-width="50" data-expec
ted-height="10"> |
| 151 </div> |
| 152 <div class="autoRowAutoColumn" |
| 153 data-offset-x="50" data-offset-y="50" data-expected-width="10" data-expe
cted-height="10"> |
| 154 </div> |
| 155 </div> |
| 156 |
| 157 <div class="grid twoColumnsTwoRows oneColumnOneRowAreas"> |
| 158 <div class="autoRowAutoColumn" |
| 159 data-offset-x="0" data-offset-y="0" data-expected-width="50" data-expect
ed-height="50"> |
| 160 </div> |
| 161 <div class="autoRowAutoColumn" |
| 162 data-offset-x="50" data-offset-y="0" data-expected-width="50" data-expec
ted-height="50"> |
| 163 </div> |
| 164 <div class="autoRowAutoColumn" |
| 165 data-offset-x="0" data-offset-y="50" data-expected-width="50" data-expec
ted-height="50"> |
| 166 </div> |
| 167 <div class="autoRowAutoColumn" |
| 168 data-offset-x="50" data-offset-y="50" data-expected-width="50" data-expe
cted-height="50"> |
| 169 </div> |
| 170 </div> |
| 171 |
| 172 </body> |
OLD | NEW |