OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 |
| 3 <link href="resources/grid.css" rel="stylesheet"> |
| 4 <style> |
| 5 .grid { |
| 6 grid: 100px / 50px; |
| 7 font: 10px/1 Ahem; |
| 8 position: relative; |
| 9 margin: 25px; |
| 10 } |
| 11 |
| 12 .firstNegativeRowFirstColumn { |
| 13 background-color: purple; |
| 14 grid-row: -3; |
| 15 grid-column: 1; |
| 16 } |
| 17 |
| 18 .firstNegativeRowFirstNegativeColumn { |
| 19 background-color: navy; |
| 20 grid-row: -3; |
| 21 grid-column: -3; |
| 22 } |
| 23 |
| 24 .secondNegativeRowFirstColumn { |
| 25 background-color: lime; |
| 26 grid-row: -4; |
| 27 grid-column: 1; |
| 28 } |
| 29 |
| 30 .secondNegativeRowSecondNegativeColumn { |
| 31 background-color: orange; |
| 32 grid-row: -4; |
| 33 grid-column: -4; |
| 34 } |
| 35 |
| 36 .firstRowFirstNegativeColumn { |
| 37 background-color: magenta; |
| 38 grid-row: 1; |
| 39 grid-column: -3; |
| 40 } |
| 41 |
| 42 .firstNegativeRowFirstNegativeColumn { |
| 43 background-color: maroon; |
| 44 grid-row: -3; |
| 45 grid-column: -3; |
| 46 } |
| 47 |
| 48 .firstRowSecondNegativeColumn { |
| 49 background-color: aqua; |
| 50 grid-row: 1; |
| 51 grid-column: -4; |
| 52 } |
| 53 |
| 54 </style> |
| 55 <script src="../../resources/testharness.js"></script> |
| 56 <script src="../../resources/testharnessreport.js"></script> |
| 57 <script src="../../resources/check-layout-th.js"></script> |
| 58 |
| 59 <body onload="checkLayout('.grid')"> |
| 60 <div id="log"></div> |
| 61 |
| 62 <p>This test checks that it's possible to create implicit tracks before the expl
icit ones using negative indexes.</p> |
| 63 |
| 64 <div class="grid"> |
| 65 <div class="autoRowAutoColumn" data-offset-x="0" data-offset-y="0" data-expe
cted-width="100" data-expected-height="50">XX</div> |
| 66 </div> |
| 67 |
| 68 <div class="grid"> |
| 69 <div class="firstNegativeRowFirstColumn" data-offset-x="0" data-offset-y="0"
data-expected-width="100" data-expected-height="10">X</div> |
| 70 <div class="autoRowAutoColumn" data-offset-x="0" data-offset-y="10" data-exp
ected-width="100" data-expected-height="50">XX</div> |
| 71 </div> |
| 72 |
| 73 <div class="grid"> |
| 74 <div class="firstNegativeRowFirstColumn" data-offset-x="0" data-offset-y="0"
data-expected-width="100" data-expected-height="10">X</div> |
| 75 <div class="firstRowFirstColumn" data-offset-x="0" data-offset-y="10" data-e
xpected-width="100" data-expected-height="50">XX</div> |
| 76 </div> |
| 77 |
| 78 <div class="grid"> |
| 79 <div class="firstNegativeRowFirstNegativeColumn" data-offset-x="0" data-offs
et-y="0" data-expected-width="10" data-expected-height="10">X</div> |
| 80 <div class="autoRowAutoColumn" data-offset-x="10" data-offset-y="0" data-exp
ected-width="100" data-expected-height="10">XX</div> |
| 81 </div> |
| 82 |
| 83 <div class="grid"> |
| 84 <div class="firstNegativeRowFirstNegativeColumn" data-offset-x="0" data-offs
et-y="0" data-expected-width="10" data-expected-height="10">X</div> |
| 85 <div class="firstRowFirstColumn" data-offset-x="10" data-offset-y="10" data-
expected-width="100" data-expected-height="50">XX</div> |
| 86 </div> |
| 87 |
| 88 <div class="grid"> |
| 89 <div class="secondNegativeRowFirstColumn" data-offset-x="0" data-offset-y="0
" data-expected-width="100" data-expected-height="10">X</div> |
| 90 <div class="autoRowAutoColumn" data-offset-x="0" data-offset-y="10" data-exp
ected-width="100" data-expected-height="10">XX</div> |
| 91 </div> |
| 92 |
| 93 <div class="grid"> |
| 94 <div class="secondNegativeRowFirstColumn" data-offset-x="0" data-offset-y="0
" data-expected-width="100" data-expected-height="10">X</div> |
| 95 <div class="firstRowFirstColumn" data-offset-x="0" data-offset-y="10" data-e
xpected-width="100" data-expected-height="50">XX</div> |
| 96 </div> |
| 97 |
| 98 <div class="grid"> |
| 99 <div class="secondNegativeRowSecondNegativeColumn" data-offset-x="0" data-of
fset-y="0" data-expected-width="10" data-expected-height="10">X</div> |
| 100 <div class="autoRowAutoColumn" data-offset-x="10" data-offset-y="0" data-exp
ected-width="20" data-expected-height="10">XX</div> |
| 101 </div> |
| 102 |
| 103 <div class="grid"> |
| 104 <div class="secondNegativeRowSecondNegativeColumn" data-offset-x="0" data-of
fset-y="0" data-expected-width="10" data-expected-height="10">X</div> |
| 105 <div class="firstRowFirstColumn" data-offset-x="10" data-offset-y="10" data-
expected-width="100" data-expected-height="50">XX</div> |
| 106 </div> |
| 107 |
| 108 <div class="grid"> |
| 109 <div class="secondNegativeRowFirstColumn" data-offset-x="0" data-offset-y="0
" data-expected-width="100" data-expected-height="10">X</div> |
| 110 <div class="firstNegativeRowFirstColumn" data-offset-x="0" data-offset-y="10
" data-expected-width="100" data-expected-height="10">XX</div> |
| 111 <div class="autoRowAutoColumn" data-offset-x="0" data-offset-y="20" data-exp
ected-width="100" data-expected-height="50">XXX</div> |
| 112 </div> |
| 113 |
| 114 <div class="grid"> |
| 115 <div class="secondNegativeRowFirstColumn" data-offset-x="0" data-offset-y="0
" data-expected-width="100" data-expected-height="10">X</div> |
| 116 <div class="firstNegativeRowFirstColumn" data-offset-x="0" data-offset-y="10
" data-expected-width="100" data-expected-height="10">XX</div> |
| 117 <div class="firstRowFirstColumn" data-offset-x="0" data-offset-y="20" data-e
xpected-width="100" data-expected-height="50">XXX</div> |
| 118 </div> |
| 119 |
| 120 <div class="grid"> |
| 121 <div class="secondNegativeRowSecondNegativeColumn" data-offset-x="0" data-of
fset-y="0" data-expected-width="10" data-expected-height="10">X</div> |
| 122 <div class="firstNegativeRowFirstNegativeColumn" data-offset-x="10" data-off
set-y="10" data-expected-width="30" data-expected-height="10">XX</div> |
| 123 <div class="autoRowAutoColumn" data-offset-x="10" data-offset-y="0" data-exp
ected-width="30" data-expected-height="10">XXX</div> |
| 124 </div> |
| 125 |
| 126 <div class="grid"> |
| 127 <div class="secondNegativeRowSecondNegativeColumn" data-offset-x="0" data-of
fset-y="0" data-expected-width="10" data-expected-height="10">X</div> |
| 128 <div class="firstNegativeRowFirstNegativeColumn" data-offset-x="10" data-off
set-y="10" data-expected-width="20" data-expected-height="10">XX</div> |
| 129 <div class="firstRowFirstColumn" data-offset-x="30" data-offset-y="20" data-
expected-width="100" data-expected-height="50">XXX</div> |
| 130 </div> |
| 131 |
| 132 <div class="grid"> |
| 133 <div class="firstRowFirstNegativeColumn" data-offset-x="0" data-offset-y="0"
data-expected-width="10" data-expected-height="50">X</div> |
| 134 <div class="autoRowAutoColumn" data-offset-x="10" data-offset-y="0" data-exp
ected-width="100" data-expected-height="50">XX</div> |
| 135 </div> |
| 136 |
| 137 <div class="grid"> |
| 138 <div class="firstRowFirstNegativeColumn" data-offset-x="0" data-offset-y="0"
data-expected-width="10" data-expected-height="50">X</div> |
| 139 <div class="firstRowFirstColumn" data-offset-x="10" data-offset-y="0" data-e
xpected-width="100" data-expected-height="50">XX</div> |
| 140 </div> |
| 141 |
| 142 <div class="grid"> |
| 143 <div class="firstNegativeRowFirstNegativeColumn" data-offset-x="0" data-offs
et-y="0" data-expected-width="10" data-expected-height="10">X</div> |
| 144 <div class="autoRowAutoColumn" data-offset-x="10" data-offset-y="0" data-exp
ected-width="100" data-expected-height="10">XX</div> |
| 145 </div> |
| 146 |
| 147 <div class="grid"> |
| 148 <div class="firstNegativeRowFirstNegativeColumn" data-offset-x="0" data-offs
et-y="0" data-expected-width="10" data-expected-height="10">X</div> |
| 149 <div class="firstRowFirstColumn" data-offset-x="10" data-offset-y="10" data-
expected-width="100" data-expected-height="50">XX</div> |
| 150 </div> |
| 151 |
| 152 <div class="grid"> |
| 153 <div class="firstRowSecondNegativeColumn" data-offset-x="0" data-offset-y="0
" data-expected-width="10" data-expected-height="50">X</div> |
| 154 <div class="autoRowAutoColumn" data-offset-x="10" data-offset-y="0" data-exp
ected-width="20" data-expected-height="50">XX</div> |
| 155 </div> |
| 156 |
| 157 <div class="grid"> |
| 158 <div class="firstRowSecondNegativeColumn" data-offset-x="0" data-offset-y="0
" data-expected-width="10" data-expected-height="50">X</div> |
| 159 <div class="firstRowFirstColumn" data-offset-x="10" data-offset-y="0" data-e
xpected-width="100" data-expected-height="50">XX</div> |
| 160 </div> |
| 161 |
| 162 <div class="grid"> |
| 163 <div class="secondNegativeRowSecondNegativeColumn" data-offset-x="0" data-of
fset-y="0" data-expected-width="10" data-expected-height="10">X</div> |
| 164 <div class="autoRowAutoColumn" data-offset-x="10" data-offset-y="0" data-exp
ected-width="20" data-expected-height="10">XX</div> |
| 165 </div> |
| 166 |
| 167 <div class="grid"> |
| 168 <div class="secondNegativeRowSecondNegativeColumn" data-offset-x="0" data-of
fset-y="0" data-expected-width="10" data-expected-height="10">X</div> |
| 169 <div class="firstRowFirstColumn" data-offset-x="10" data-offset-y="10" data-
expected-width="100" data-expected-height="50">XX</div> |
| 170 </div> |
| 171 |
| 172 <div class="grid"> |
| 173 <div class="firstRowSecondNegativeColumn" data-offset-x="0" data-offset-y="0
" data-expected-width="10" data-expected-height="50">X</div> |
| 174 <div class="firstRowFirstNegativeColumn" data-offset-x="10" data-offset-y="0
" data-expected-width="20" data-expected-height="50">XX</div> |
| 175 <div class="autoRowAutoColumn" data-offset-x="30" data-offset-y="0" data-exp
ected-width="100" data-expected-height="50">XXX</div> |
| 176 </div> |
| 177 |
| 178 <div class="grid"> |
| 179 <div class="firstRowSecondNegativeColumn" data-offset-x="0" data-offset-y="0
" data-expected-width="10" data-expected-height="50">X</div> |
| 180 <div class="firstRowFirstNegativeColumn" data-offset-x="10" data-offset-y="0
" data-expected-width="20" data-expected-height="50">XX</div> |
| 181 <div class="firstRowFirstColumn" data-offset-x="30" data-offset-y="0" data-e
xpected-width="100" data-expected-height="50">XXX</div> |
| 182 </div> |
| 183 |
| 184 <div class="grid"> |
| 185 <div class="secondNegativeRowSecondNegativeColumn" data-offset-x="0" data-of
fset-y="0" data-expected-width="10" data-expected-height="10">X</div> |
| 186 <div class="firstNegativeRowFirstNegativeColumn" data-offset-x="10" data-off
set-y="10" data-expected-width="30" data-expected-height="10">XX</div> |
| 187 <div class="autoRowAutoColumn" data-offset-x="10" data-offset-y="0" data-exp
ected-width="30" data-expected-height="10">XXX</div> |
| 188 </div> |
| 189 |
| 190 <div class="grid"> |
| 191 <div class="secondNegativeRowSecondNegativeColumn" data-offset-x="0" data-of
fset-y="0" data-expected-width="10" data-expected-height="10">X</div> |
| 192 <div class="firstNegativeRowFirstNegativeColumn" data-offset-x="10" data-off
set-y="10" data-expected-width="20" data-expected-height="10">XX</div> |
| 193 <div class="firstRowFirstColumn" data-offset-x="30" data-offset-y="20" data-
expected-width="100" data-expected-height="50">XXX</div> |
| 194 </div> |
| 195 |
| 196 <div class="grid"> |
| 197 <div class="firstNegativeRowFirstColumn" data-offset-x="30" data-offset-y="0
" data-expected-width="100" data-expected-height="10">X</div> |
| 198 <div class="firstRowFirstNegativeColumn" data-offset-x="0" data-offset-y="10
" data-expected-width="30" data-expected-height="50">XX</div> |
| 199 <div class="autoRowAutoColumn" data-offset-x="0" data-offset-y="0" data-expe
cted-width="30" data-expected-height="10">XXX</div> |
| 200 </div> |
| 201 |
| 202 <div class="grid"> |
| 203 <div class="firstNegativeRowFirstColumn" data-offset-x="20" data-offset-y="0
" data-expected-width="100" data-expected-height="10">X</div> |
| 204 <div class="firstRowFirstNegativeColumn" data-offset-x="0" data-offset-y="10
" data-expected-width="20" data-expected-height="50">XX</div> |
| 205 <div class="firstRowFirstColumn" data-offset-x="20" data-offset-y="10" data-
expected-width="100" data-expected-height="50">XXX</div> |
| 206 </div> |
| 207 |
| 208 <div class="grid"> |
| 209 <div class="secondNegativeRowFirstColumn" data-offset-x="30" data-offset-y="
0" data-expected-width="100" data-expected-height="10">X</div> |
| 210 <div class="firstRowSecondNegativeColumn" data-offset-x="0" data-offset-y="1
0" data-expected-width="30" data-expected-height="50">XX</div> |
| 211 <div class="autoRowAutoColumn" data-offset-x="0" data-offset-y="0" data-expe
cted-width="30" data-expected-height="10">XXX</div> |
| 212 </div> |
| 213 |
| 214 <div class="grid"> |
| 215 <div class="secondNegativeRowFirstColumn" data-offset-x="20" data-offset-y="
0" data-expected-width="100" data-expected-height="10">X</div> |
| 216 <div class="firstRowSecondNegativeColumn" data-offset-x="0" data-offset-y="1
0" data-expected-width="20" data-expected-height="50">XX</div> |
| 217 <div class="firstRowFirstColumn" data-offset-x="20" data-offset-y="10" data-
expected-width="100" data-expected-height="50">XXX</div> |
| 218 </div> |
| 219 |
| 220 <div class="grid"> |
| 221 <div class="secondNegativeRowFirstColumn" data-offset-x="90" data-offset-y="
0" data-expected-width="100" data-expected-height="10">X</div> |
| 222 <div class="firstRowSecondNegativeColumn" data-offset-x="0" data-offset-y="2
0" data-expected-width="50" data-expected-height="50">XX</div> |
| 223 <div class="firstNegativeRowFirstColumn" data-offset-x="90" data-offset-y="1
0" data-expected-width="100" data-expected-height="10">XXX</div> |
| 224 <div class="firstRowFirstNegativeColumn" data-offset-x="50" data-offset-y="2
0" data-expected-width="40" data-expected-height="50">XXXX</div> |
| 225 <div class="autoRowAutoColumn" data-offset-x="0" data-offset-y="0" data-expe
cted-width="50" data-expected-height="10">XXXXX</div> |
| 226 </div> |
| 227 |
| 228 <div class="grid"> |
| 229 <div class="secondNegativeRowFirstColumn" data-offset-x="60" data-offset-y="
0" data-expected-width="100" data-expected-height="10">X</div> |
| 230 <div class="firstRowSecondNegativeColumn" data-offset-x="0" data-offset-y="2
0" data-expected-width="20" data-expected-height="50">XX</div> |
| 231 <div class="firstNegativeRowFirstColumn" data-offset-x="60" data-offset-y="1
0" data-expected-width="100" data-expected-height="10">XXX</div> |
| 232 <div class="firstRowFirstNegativeColumn" data-offset-x="20" data-offset-y="2
0" data-expected-width="40" data-expected-height="50">XXXX</div> |
| 233 <div class="firstRowFirstColumn" data-offset-x="60" data-offset-y="20" data-
expected-width="100" data-expected-height="50">XXXXX</div> |
| 234 </div> |
| 235 |
| 236 </body> |
OLD | NEW |