layout/reftests/pixel-rounding/background-image-tiling-ref.html

Wed, 31 Dec 2014 07:16:47 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 07:16:47 +0100
branch
TOR_BUG_9701
changeset 3
141e0f1194b1
permissions
-rw-r--r--

Revert simplistic fix pending revisit of Mozilla integration attempt.

michael@0 1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
michael@0 2 "http://www.w3.org/TR/html4/strict.dtd">
michael@0 3 <html lang="en-US">
michael@0 4 <head>
michael@0 5 <title>Pixel rounding of background image tiling</title>
michael@0 6 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
michael@0 7 <meta http-equiv="Content-Style-Type" content="text/css">
michael@0 8 <style type="text/css">
michael@0 9
michael@0 10 body { background: black; }
michael@0 11
michael@0 12 .set {
michael@0 13 height: 60px;
michael@0 14 position: relative;
michael@0 15 }
michael@0 16
michael@0 17 .item {
michael@0 18 position: absolute;
michael@0 19 width: 10px;
michael@0 20 height: 10px;
michael@0 21 background: aqua;
michael@0 22 overflow: hidden;
michael@0 23 }
michael@0 24 .item > div {
michael@0 25 position: absolute;
michael@0 26 width: 15px;
michael@0 27 height: 15px;
michael@0 28 border: 1px solid yellow;
michael@0 29 }
michael@0 30
michael@0 31 .item1 { left: 0px; }
michael@0 32 .item2 { left: 15px; }
michael@0 33 .item3 { left: 30px; }
michael@0 34 .item4 { left: 45px; }
michael@0 35 .item5 { left: 60px; }
michael@0 36
michael@0 37 .tl { top: 0px; }
michael@0 38 .tl > div { top: 0; left: 0; }
michael@0 39
michael@0 40 .tr { top: 15px; }
michael@0 41 .tr > div { top: 0; right: 0; }
michael@0 42
michael@0 43 .bl { top: 30px; }
michael@0 44 .bl > div { bottom: 0; left: 0; }
michael@0 45
michael@0 46 .br { top: 45px; }
michael@0 47 .br > div { bottom: 0; right: 0; }
michael@0 48
michael@0 49 .varydim .item1 { height: 10px; width: 11px; }
michael@0 50 .varydim .item2 { height: 10px; width: 11px; }
michael@0 51 .varydim .item3 { height: 11px; width: 11px; }
michael@0 52 .varydim .item4 { height: 11px; width: 10px; }
michael@0 53 .varydim .item5 { height: 11px; width: 10px; }
michael@0 54
michael@0 55 .varydim.athalf .item2 { width: 10px; }
michael@0 56 .varydim.athalf .item3 { height: 10px; width: 10px; }
michael@0 57 .varydim.athalf .item4 { height: 10px; }
michael@0 58
michael@0 59 .varypos .item1 { margin-top: 0px; margin-left: 1px; }
michael@0 60 .varypos .item2 { margin-top: 0px; margin-left: 1px; }
michael@0 61 .varypos .item3 { margin-top: 1px; margin-left: 1px; }
michael@0 62 .varypos .item4 { margin-top: 1px; margin-left: 0px; }
michael@0 63 .varypos .item5 { margin-top: 1px; margin-left: 0px; }
michael@0 64
michael@0 65 .varydim.athalf .item {
michael@0 66 margin-top: 1px; margin-left: 1px;
michael@0 67 }
michael@0 68
michael@0 69 .varypos.athalf .item1 { width: 11px; height: 11px; }
michael@0 70 .varypos.athalf .item2 { height: 11px; }
michael@0 71 .varypos.athalf .item4 { width: 11px; }
michael@0 72 .varypos.athalf .item5 { width: 11px; height: 11px; }
michael@0 73
michael@0 74 /* remember that abs pos children are relative to the padding box */
michael@0 75 .border .item { padding: 1px; }
michael@0 76
michael@0 77 /*
michael@0 78 * For the tiled images, use two divs as the children, and offset
michael@0 79 * one so that it does only the vertical line, and the other so it
michael@0 80 * does only the horizontal line.
michael@0 81 */
michael@0 82 .border .item div:first-child { margin: 1px -1px; }
michael@0 83 .border .item div:first-child + div { margin: -1px 1px; }
michael@0 84
michael@0 85 </style>
michael@0 86 </head>
michael@0 87 <body>
michael@0 88
michael@0 89 <div class="set varydim">
michael@0 90 <div class="tl item item1"><div></div></div>
michael@0 91 <div class="tl item item2"><div></div></div>
michael@0 92 <div class="tl item item3"><div></div></div>
michael@0 93 <div class="tl item item4"><div></div></div>
michael@0 94 <div class="tl item item5"><div></div></div>
michael@0 95
michael@0 96 <div class="tr item item1"><div></div></div>
michael@0 97 <div class="tr item item2"><div></div></div>
michael@0 98 <div class="tr item item3"><div></div></div>
michael@0 99 <div class="tr item item4"><div></div></div>
michael@0 100 <div class="tr item item5"><div></div></div>
michael@0 101
michael@0 102 <div class="bl item item1"><div></div></div>
michael@0 103 <div class="bl item item2"><div></div></div>
michael@0 104 <div class="bl item item3"><div></div></div>
michael@0 105 <div class="bl item item4"><div></div></div>
michael@0 106 <div class="bl item item5"><div></div></div>
michael@0 107
michael@0 108 <div class="br item item1"><div></div></div>
michael@0 109 <div class="br item item2"><div></div></div>
michael@0 110 <div class="br item item3"><div></div></div>
michael@0 111 <div class="br item item4"><div></div></div>
michael@0 112 <div class="br item item5"><div></div></div>
michael@0 113 </div>
michael@0 114
michael@0 115 <div class="set varypos">
michael@0 116 <div class="tl item item1"><div></div></div>
michael@0 117 <div class="tl item item2"><div></div></div>
michael@0 118 <div class="tl item item3"><div></div></div>
michael@0 119 <div class="tl item item4"><div></div></div>
michael@0 120 <div class="tl item item5"><div></div></div>
michael@0 121
michael@0 122 <div class="tr item item1"><div></div></div>
michael@0 123 <div class="tr item item2"><div></div></div>
michael@0 124 <div class="tr item item3"><div></div></div>
michael@0 125 <div class="tr item item4"><div></div></div>
michael@0 126 <div class="tr item item5"><div></div></div>
michael@0 127
michael@0 128 <div class="bl item item1"><div></div></div>
michael@0 129 <div class="bl item item2"><div></div></div>
michael@0 130 <div class="bl item item3"><div></div></div>
michael@0 131 <div class="bl item item4"><div></div></div>
michael@0 132 <div class="bl item item5"><div></div></div>
michael@0 133
michael@0 134 <div class="br item item1"><div></div></div>
michael@0 135 <div class="br item item2"><div></div></div>
michael@0 136 <div class="br item item3"><div></div></div>
michael@0 137 <div class="br item item4"><div></div></div>
michael@0 138 <div class="br item item5"><div></div></div>
michael@0 139 </div>
michael@0 140
michael@0 141 <div class="set varydim athalf">
michael@0 142 <div class="tl item item1"><div></div></div>
michael@0 143 <div class="tl item item2"><div></div></div>
michael@0 144 <div class="tl item item3"><div></div></div>
michael@0 145 <div class="tl item item4"><div></div></div>
michael@0 146 <div class="tl item item5"><div></div></div>
michael@0 147
michael@0 148 <div class="tr item item1"><div></div></div>
michael@0 149 <div class="tr item item2"><div></div></div>
michael@0 150 <div class="tr item item3"><div></div></div>
michael@0 151 <div class="tr item item4"><div></div></div>
michael@0 152 <div class="tr item item5"><div></div></div>
michael@0 153
michael@0 154 <div class="bl item item1"><div></div></div>
michael@0 155 <div class="bl item item2"><div></div></div>
michael@0 156 <div class="bl item item3"><div></div></div>
michael@0 157 <div class="bl item item4"><div></div></div>
michael@0 158 <div class="bl item item5"><div></div></div>
michael@0 159
michael@0 160 <div class="br item item1"><div></div></div>
michael@0 161 <div class="br item item2"><div></div></div>
michael@0 162 <div class="br item item3"><div></div></div>
michael@0 163 <div class="br item item4"><div></div></div>
michael@0 164 <div class="br item item5"><div></div></div>
michael@0 165 </div>
michael@0 166
michael@0 167 <div class="set varypos athalf">
michael@0 168 <div class="tl item item1"><div></div></div>
michael@0 169 <div class="tl item item2"><div></div></div>
michael@0 170 <div class="tl item item3"><div></div></div>
michael@0 171 <div class="tl item item4"><div></div></div>
michael@0 172 <div class="tl item item5"><div></div></div>
michael@0 173
michael@0 174 <div class="tr item item1"><div></div></div>
michael@0 175 <div class="tr item item2"><div></div></div>
michael@0 176 <div class="tr item item3"><div></div></div>
michael@0 177 <div class="tr item item4"><div></div></div>
michael@0 178 <div class="tr item item5"><div></div></div>
michael@0 179
michael@0 180 <div class="bl item item1"><div></div></div>
michael@0 181 <div class="bl item item2"><div></div></div>
michael@0 182 <div class="bl item item3"><div></div></div>
michael@0 183 <div class="bl item item4"><div></div></div>
michael@0 184 <div class="bl item item5"><div></div></div>
michael@0 185
michael@0 186 <div class="br item item1"><div></div></div>
michael@0 187 <div class="br item item2"><div></div></div>
michael@0 188 <div class="br item item3"><div></div></div>
michael@0 189 <div class="br item item4"><div></div></div>
michael@0 190 <div class="br item item5"><div></div></div>
michael@0 191 </div>
michael@0 192
michael@0 193 <div class="set varydim border">
michael@0 194 <div class="tl item item1"><div></div><div></div></div>
michael@0 195 <div class="tl item item2"><div></div><div></div></div>
michael@0 196 <div class="tl item item3"><div></div><div></div></div>
michael@0 197 <div class="tl item item4"><div></div><div></div></div>
michael@0 198 <div class="tl item item5"><div></div><div></div></div>
michael@0 199
michael@0 200 <div class="tr item item1"><div></div><div></div></div>
michael@0 201 <div class="tr item item2"><div></div><div></div></div>
michael@0 202 <div class="tr item item3"><div></div><div></div></div>
michael@0 203 <div class="tr item item4"><div></div><div></div></div>
michael@0 204 <div class="tr item item5"><div></div><div></div></div>
michael@0 205
michael@0 206 <div class="bl item item1"><div></div><div></div></div>
michael@0 207 <div class="bl item item2"><div></div><div></div></div>
michael@0 208 <div class="bl item item3"><div></div><div></div></div>
michael@0 209 <div class="bl item item4"><div></div><div></div></div>
michael@0 210 <div class="bl item item5"><div></div><div></div></div>
michael@0 211
michael@0 212 <div class="br item item1"><div></div><div></div></div>
michael@0 213 <div class="br item item2"><div></div><div></div></div>
michael@0 214 <div class="br item item3"><div></div><div></div></div>
michael@0 215 <div class="br item item4"><div></div><div></div></div>
michael@0 216 <div class="br item item5"><div></div><div></div></div>
michael@0 217 </div>
michael@0 218
michael@0 219 <div class="set varypos border">
michael@0 220 <div class="tl item item1"><div></div><div></div></div>
michael@0 221 <div class="tl item item2"><div></div><div></div></div>
michael@0 222 <div class="tl item item3"><div></div><div></div></div>
michael@0 223 <div class="tl item item4"><div></div><div></div></div>
michael@0 224 <div class="tl item item5"><div></div><div></div></div>
michael@0 225
michael@0 226 <div class="tr item item1"><div></div><div></div></div>
michael@0 227 <div class="tr item item2"><div></div><div></div></div>
michael@0 228 <div class="tr item item3"><div></div><div></div></div>
michael@0 229 <div class="tr item item4"><div></div><div></div></div>
michael@0 230 <div class="tr item item5"><div></div><div></div></div>
michael@0 231
michael@0 232 <div class="bl item item1"><div></div><div></div></div>
michael@0 233 <div class="bl item item2"><div></div><div></div></div>
michael@0 234 <div class="bl item item3"><div></div><div></div></div>
michael@0 235 <div class="bl item item4"><div></div><div></div></div>
michael@0 236 <div class="bl item item5"><div></div><div></div></div>
michael@0 237
michael@0 238 <div class="br item item1"><div></div><div></div></div>
michael@0 239 <div class="br item item2"><div></div><div></div></div>
michael@0 240 <div class="br item item3"><div></div><div></div></div>
michael@0 241 <div class="br item item4"><div></div><div></div></div>
michael@0 242 <div class="br item item5"><div></div><div></div></div>
michael@0 243 </div>
michael@0 244
michael@0 245 <div class="set varydim athalf border">
michael@0 246 <div class="tl item item1"><div></div><div></div></div>
michael@0 247 <div class="tl item item2"><div></div><div></div></div>
michael@0 248 <div class="tl item item3"><div></div><div></div></div>
michael@0 249 <div class="tl item item4"><div></div><div></div></div>
michael@0 250 <div class="tl item item5"><div></div><div></div></div>
michael@0 251
michael@0 252 <div class="tr item item1"><div></div><div></div></div>
michael@0 253 <div class="tr item item2"><div></div><div></div></div>
michael@0 254 <div class="tr item item3"><div></div><div></div></div>
michael@0 255 <div class="tr item item4"><div></div><div></div></div>
michael@0 256 <div class="tr item item5"><div></div><div></div></div>
michael@0 257
michael@0 258 <div class="bl item item1"><div></div><div></div></div>
michael@0 259 <div class="bl item item2"><div></div><div></div></div>
michael@0 260 <div class="bl item item3"><div></div><div></div></div>
michael@0 261 <div class="bl item item4"><div></div><div></div></div>
michael@0 262 <div class="bl item item5"><div></div><div></div></div>
michael@0 263
michael@0 264 <div class="br item item1"><div></div><div></div></div>
michael@0 265 <div class="br item item2"><div></div><div></div></div>
michael@0 266 <div class="br item item3"><div></div><div></div></div>
michael@0 267 <div class="br item item4"><div></div><div></div></div>
michael@0 268 <div class="br item item5"><div></div><div></div></div>
michael@0 269 </div>
michael@0 270
michael@0 271 <div class="set varypos athalf border">
michael@0 272 <div class="tl item item1"><div></div><div></div></div>
michael@0 273 <div class="tl item item2"><div></div><div></div></div>
michael@0 274 <div class="tl item item3"><div></div><div></div></div>
michael@0 275 <div class="tl item item4"><div></div><div></div></div>
michael@0 276 <div class="tl item item5"><div></div><div></div></div>
michael@0 277
michael@0 278 <div class="tr item item1"><div></div><div></div></div>
michael@0 279 <div class="tr item item2"><div></div><div></div></div>
michael@0 280 <div class="tr item item3"><div></div><div></div></div>
michael@0 281 <div class="tr item item4"><div></div><div></div></div>
michael@0 282 <div class="tr item item5"><div></div><div></div></div>
michael@0 283
michael@0 284 <div class="bl item item1"><div></div><div></div></div>
michael@0 285 <div class="bl item item2"><div></div><div></div></div>
michael@0 286 <div class="bl item item3"><div></div><div></div></div>
michael@0 287 <div class="bl item item4"><div></div><div></div></div>
michael@0 288 <div class="bl item item5"><div></div><div></div></div>
michael@0 289
michael@0 290 <div class="br item item1"><div></div><div></div></div>
michael@0 291 <div class="br item item2"><div></div><div></div></div>
michael@0 292 <div class="br item item3"><div></div><div></div></div>
michael@0 293 <div class="br item item4"><div></div><div></div></div>
michael@0 294 <div class="br item item5"><div></div><div></div></div>
michael@0 295 </div>
michael@0 296
michael@0 297 </body>
michael@0 298 </html>

mercurial