Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Side by Side Diff: third_party/WebKit/LayoutTests/fast/css/getComputedStyle/getComputedStyle-resolved-values-expected.txt

Issue 1890743002: Reland of ix getComputedStyle positioned element values (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkgr
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 Test calling getPropertyValue on computed styles that return "resolved" values. 1 Test calling getPropertyValue on computed styles that return "resolved" values.
2 See http://dev.w3.org/csswg/cssom/#resolved-values for more information. 2 See http://dev.w3.org/csswg/cssom/#resolved-values for more information.
3 3
4 Resolved values for element "fixed" with display "block": 4 Resolved values for element "fixed" with display "block":
5 line-height: 30px 5 line-height: 30px
6 width: 150px 6 width: 150px
7 height: 100px 7 height: 100px
8 top: auto
9 right: auto
10 bottom: auto
11 left: auto
8 margin-top: 15px 12 margin-top: 15px
9 margin-right: 30px 13 margin-right: 30px
10 margin-bottom: 20px 14 margin-bottom: 20px
11 margin-left: 10px 15 margin-left: 10px
12 padding-top: 20px 16 padding-top: 20px
13 padding-right: 20px 17 padding-right: 20px
14 padding-bottom: 20px 18 padding-bottom: 20px
15 padding-left: 20px 19 padding-left: 20px
16 20
17 Resolved values for element "fixed" with display "inline": 21 Resolved values for element "fixed" with display "inline":
18 line-height: 30px 22 line-height: 30px
19 width: auto 23 width: auto
20 height: auto 24 height: auto
25 top: auto
26 right: auto
27 bottom: auto
28 left: auto
21 margin-top: 15px 29 margin-top: 15px
22 margin-right: 30px 30 margin-right: 30px
23 margin-bottom: 20px 31 margin-bottom: 20px
24 margin-left: 10px 32 margin-left: 10px
25 padding-top: 20px 33 padding-top: 20px
26 padding-right: 20px 34 padding-right: 20px
27 padding-bottom: 20px 35 padding-bottom: 20px
28 padding-left: 20px 36 padding-left: 20px
29 37
30 Resolved values for element "fixed" with display "inline-block": 38 Resolved values for element "fixed" with display "inline-block":
31 line-height: 30px 39 line-height: 30px
32 width: 150px 40 width: 150px
33 height: 100px 41 height: 100px
42 top: auto
43 right: auto
44 bottom: auto
45 left: auto
34 margin-top: 15px 46 margin-top: 15px
35 margin-right: 30px 47 margin-right: 30px
36 margin-bottom: 20px 48 margin-bottom: 20px
37 margin-left: 10px 49 margin-left: 10px
38 padding-top: 20px 50 padding-top: 20px
39 padding-right: 20px 51 padding-right: 20px
40 padding-bottom: 20px 52 padding-bottom: 20px
41 padding-left: 20px 53 padding-left: 20px
42 54
43 Resolved values for element "fixed" with display "none": 55 Resolved values for element "fixed" with display "none":
44 line-height: 30px 56 line-height: 30px
45 width: 150px 57 width: 150px
46 height: 100px 58 height: 100px
59 top: auto
60 right: auto
61 bottom: auto
62 left: auto
47 margin-top: 15px 63 margin-top: 15px
48 margin-right: 30px 64 margin-right: 30px
49 margin-bottom: 20px 65 margin-bottom: 20px
50 margin-left: 10px 66 margin-left: 10px
51 padding-top: 20px 67 padding-top: 20px
52 padding-right: 20px 68 padding-right: 20px
53 padding-bottom: 20px 69 padding-bottom: 20px
54 padding-left: 20px 70 padding-left: 20px
55 71
56 72
57 Resolved values for element "percents" with display "block": 73 Resolved values for element "percents" with display "block":
58 line-height: 36px 74 line-height: 36px
59 width: 250px 75 width: 250px
60 height: 75px 76 height: 75px
77 top: auto
78 right: auto
79 bottom: auto
80 left: auto
61 margin-top: 50px 81 margin-top: 50px
62 margin-right: 25px 82 margin-right: 25px
63 margin-bottom: 50px 83 margin-bottom: 50px
64 margin-left: 100px 84 margin-left: 100px
65 padding-top: 25px 85 padding-top: 25px
66 padding-right: 25px 86 padding-right: 25px
67 padding-bottom: 25px 87 padding-bottom: 25px
68 padding-left: 25px 88 padding-left: 25px
69 89
70 Resolved values for element "percents" with display "inline": 90 Resolved values for element "percents" with display "inline":
71 line-height: 36px 91 line-height: 36px
72 width: auto 92 width: auto
73 height: auto 93 height: auto
94 top: auto
95 right: auto
96 bottom: auto
97 left: auto
74 margin-top: 10% 98 margin-top: 10%
75 margin-right: 5% 99 margin-right: 5%
76 margin-bottom: 10% 100 margin-bottom: 10%
77 margin-left: 20% 101 margin-left: 20%
78 padding-top: 5% 102 padding-top: 5%
79 padding-right: 5% 103 padding-right: 5%
80 padding-bottom: 5% 104 padding-bottom: 5%
81 padding-left: 5% 105 padding-left: 5%
82 106
83 Resolved values for element "percents" with display "inline-block": 107 Resolved values for element "percents" with display "inline-block":
84 line-height: 36px 108 line-height: 36px
85 width: 250px 109 width: 250px
86 height: 75px 110 height: 75px
111 top: auto
112 right: auto
113 bottom: auto
114 left: auto
87 margin-top: 50px 115 margin-top: 50px
88 margin-right: 25px 116 margin-right: 25px
89 margin-bottom: 50px 117 margin-bottom: 50px
90 margin-left: 100px 118 margin-left: 100px
91 padding-top: 25px 119 padding-top: 25px
92 padding-right: 25px 120 padding-right: 25px
93 padding-bottom: 25px 121 padding-bottom: 25px
94 padding-left: 25px 122 padding-left: 25px
95 123
96 Resolved values for element "percents" with display "none": 124 Resolved values for element "percents" with display "none":
97 line-height: 36px 125 line-height: 36px
98 width: 50% 126 width: 50%
99 height: 25% 127 height: 25%
128 top: auto
129 right: auto
130 bottom: auto
131 left: auto
100 margin-top: 10% 132 margin-top: 10%
101 margin-right: 5% 133 margin-right: 5%
102 margin-bottom: 10% 134 margin-bottom: 10%
103 margin-left: 20% 135 margin-left: 20%
104 padding-top: 5% 136 padding-top: 5%
105 padding-right: 5% 137 padding-right: 5%
106 padding-bottom: 5% 138 padding-bottom: 5%
107 padding-left: 5% 139 padding-left: 5%
108 140
109 141
110 Resolved values for element "ems" with display "block": 142 Resolved values for element "ems" with display "block":
111 line-height: 24px 143 line-height: 24px
112 width: 240px 144 width: 240px
113 height: 120px 145 height: 120px
146 top: auto
147 right: auto
148 bottom: auto
149 left: auto
114 margin-top: 24px 150 margin-top: 24px
115 margin-right: 12px 151 margin-right: 12px
116 margin-bottom: 36px 152 margin-bottom: 36px
117 margin-left: 48px 153 margin-left: 48px
118 padding-top: 18px 154 padding-top: 18px
119 padding-right: 18px 155 padding-right: 18px
120 padding-bottom: 18px 156 padding-bottom: 18px
121 padding-left: 18px 157 padding-left: 18px
122 158
123 Resolved values for element "ems" with display "inline": 159 Resolved values for element "ems" with display "inline":
124 line-height: 24px 160 line-height: 24px
125 width: auto 161 width: auto
126 height: auto 162 height: auto
163 top: auto
164 right: auto
165 bottom: auto
166 left: auto
127 margin-top: 24px 167 margin-top: 24px
128 margin-right: 12px 168 margin-right: 12px
129 margin-bottom: 36px 169 margin-bottom: 36px
130 margin-left: 48px 170 margin-left: 48px
131 padding-top: 18px 171 padding-top: 18px
132 padding-right: 18px 172 padding-right: 18px
133 padding-bottom: 18px 173 padding-bottom: 18px
134 padding-left: 18px 174 padding-left: 18px
135 175
136 Resolved values for element "ems" with display "inline-block": 176 Resolved values for element "ems" with display "inline-block":
137 line-height: 24px 177 line-height: 24px
138 width: 240px 178 width: 240px
139 height: 120px 179 height: 120px
180 top: auto
181 right: auto
182 bottom: auto
183 left: auto
140 margin-top: 24px 184 margin-top: 24px
141 margin-right: 12px 185 margin-right: 12px
142 margin-bottom: 36px 186 margin-bottom: 36px
143 margin-left: 48px 187 margin-left: 48px
144 padding-top: 18px 188 padding-top: 18px
145 padding-right: 18px 189 padding-right: 18px
146 padding-bottom: 18px 190 padding-bottom: 18px
147 padding-left: 18px 191 padding-left: 18px
148 192
149 Resolved values for element "ems" with display "none": 193 Resolved values for element "ems" with display "none":
150 line-height: 24px 194 line-height: 24px
151 width: 240px 195 width: 240px
152 height: 120px 196 height: 120px
197 top: auto
198 right: auto
199 bottom: auto
200 left: auto
153 margin-top: 24px 201 margin-top: 24px
154 margin-right: 12px 202 margin-right: 12px
155 margin-bottom: 36px 203 margin-bottom: 36px
156 margin-left: 48px 204 margin-left: 48px
157 padding-top: 18px 205 padding-top: 18px
158 padding-right: 18px 206 padding-right: 18px
159 padding-bottom: 18px 207 padding-bottom: 18px
160 padding-left: 18px 208 padding-left: 18px
161 209
162 210
163 Resolved values for element "auto" with display "block": 211 Resolved values for element "auto" with display "block":
164 line-height: 30px 212 line-height: 30px
165 width: 200px 213 width: 200px
166 height: 30px 214 height: 30px
215 top: auto
216 right: auto
217 bottom: auto
218 left: auto
167 margin-top: 0px 219 margin-top: 0px
168 margin-right: 126px 220 margin-right: 126px
169 margin-bottom: 0px 221 margin-bottom: 0px
170 margin-left: 126px 222 margin-left: 126px
171 padding-top: 0px 223 padding-top: 0px
172 padding-right: 0px 224 padding-right: 0px
173 padding-bottom: 0px 225 padding-bottom: 0px
174 padding-left: 0px 226 padding-left: 0px
175 227
176 Resolved values for element "auto" with display "inline": 228 Resolved values for element "auto" with display "inline":
177 line-height: 30px 229 line-height: 30px
178 width: auto 230 width: auto
179 height: auto 231 height: auto
232 top: auto
233 right: auto
234 bottom: auto
235 left: auto
180 margin-top: 0px 236 margin-top: 0px
181 margin-right: auto 237 margin-right: auto
182 margin-bottom: 0px 238 margin-bottom: 0px
183 margin-left: auto 239 margin-left: auto
184 padding-top: 0px 240 padding-top: 0px
185 padding-right: 0px 241 padding-right: 0px
186 padding-bottom: 0px 242 padding-bottom: 0px
187 padding-left: 0px 243 padding-left: 0px
188 244
189 Resolved values for element "auto" with display "inline-block": 245 Resolved values for element "auto" with display "inline-block":
190 line-height: 30px 246 line-height: 30px
191 width: 200px 247 width: 200px
192 height: 30px 248 height: 30px
249 top: auto
250 right: auto
251 bottom: auto
252 left: auto
193 margin-top: 0px 253 margin-top: 0px
194 margin-right: 0px 254 margin-right: 0px
195 margin-bottom: 0px 255 margin-bottom: 0px
196 margin-left: 0px 256 margin-left: 0px
197 padding-top: 0px 257 padding-top: 0px
198 padding-right: 0px 258 padding-right: 0px
199 padding-bottom: 0px 259 padding-bottom: 0px
200 padding-left: 0px 260 padding-left: 0px
201 261
202 Resolved values for element "auto" with display "none": 262 Resolved values for element "auto" with display "none":
203 line-height: 30px 263 line-height: 30px
204 width: 200px 264 width: 200px
205 height: auto 265 height: auto
266 top: auto
267 right: auto
268 bottom: auto
269 left: auto
206 margin-top: 0px 270 margin-top: 0px
207 margin-right: auto 271 margin-right: auto
208 margin-bottom: 0px 272 margin-bottom: 0px
209 margin-left: auto 273 margin-left: auto
210 padding-top: 0px 274 padding-top: 0px
211 padding-right: 0px 275 padding-right: 0px
212 padding-bottom: 0px 276 padding-bottom: 0px
213 padding-left: 0px 277 padding-left: 0px
214 278
215 279
216 Resolved values for element "mixed" with display "block": 280 Resolved values for element "mixed" with display "block":
217 line-height: 48px 281 line-height: 48px
218 width: 150px 282 width: 150px
219 height: 60px 283 height: 60px
284 top: auto
285 right: auto
286 bottom: auto
287 left: auto
220 margin-top: 72px 288 margin-top: 72px
221 margin-right: 0px 289 margin-right: 0px
222 margin-bottom: 0px 290 margin-bottom: 0px
223 margin-left: 252px 291 margin-left: 252px
224 padding-top: 40px 292 padding-top: 40px
225 padding-right: 50px 293 padding-right: 50px
226 padding-bottom: 24px 294 padding-bottom: 24px
227 padding-left: 0px 295 padding-left: 0px
228 296
229 Resolved values for element "mixed" with display "inline": 297 Resolved values for element "mixed" with display "inline":
230 line-height: 48px 298 line-height: 48px
231 width: auto 299 width: auto
232 height: auto 300 height: auto
301 top: auto
302 right: auto
303 bottom: auto
304 left: auto
233 margin-top: 72px 305 margin-top: 72px
234 margin-right: 0px 306 margin-right: 0px
235 margin-bottom: 0px 307 margin-bottom: 0px
236 margin-left: auto 308 margin-left: auto
237 padding-top: 40px 309 padding-top: 40px
238 padding-right: 10% 310 padding-right: 10%
239 padding-bottom: 24px 311 padding-bottom: 24px
240 padding-left: 0px 312 padding-left: 0px
241 313
242 Resolved values for element "mixed" with display "inline-block": 314 Resolved values for element "mixed" with display "inline-block":
243 line-height: 48px 315 line-height: 48px
244 width: 150px 316 width: 150px
245 height: 60px 317 height: 60px
318 top: auto
319 right: auto
320 bottom: auto
321 left: auto
246 margin-top: 72px 322 margin-top: 72px
247 margin-right: 0px 323 margin-right: 0px
248 margin-bottom: 0px 324 margin-bottom: 0px
249 margin-left: 0px 325 margin-left: 0px
250 padding-top: 40px 326 padding-top: 40px
251 padding-right: 50px 327 padding-right: 50px
252 padding-bottom: 24px 328 padding-bottom: 24px
253 padding-left: 0px 329 padding-left: 0px
254 330
255 Resolved values for element "mixed" with display "none": 331 Resolved values for element "mixed" with display "none":
256 line-height: 48px 332 line-height: 48px
257 width: 30% 333 width: 30%
258 height: 20% 334 height: 20%
335 top: auto
336 right: auto
337 bottom: auto
338 left: auto
259 margin-top: 72px 339 margin-top: 72px
260 margin-right: 0px 340 margin-right: 0px
261 margin-bottom: 0px 341 margin-bottom: 0px
262 margin-left: auto 342 margin-left: auto
263 padding-top: 40px 343 padding-top: 40px
264 padding-right: 10% 344 padding-right: 10%
265 padding-bottom: 24px 345 padding-bottom: 24px
266 padding-left: 0px 346 padding-left: 0px
267 347
268 348
349 Resolved values for element "rel_positioned" with display "block":
350 line-height: 30px
351 width: 150px
352 height: 100px
353 top: 15px
354 right: -10px
355 bottom: -15px
356 left: 10px
357 margin-top: 15px
358 margin-right: 30px
359 margin-bottom: 20px
360 margin-left: 10px
361 padding-top: 20px
362 padding-right: 20px
363 padding-bottom: 20px
364 padding-left: 20px
365
366 Resolved values for element "rel_positioned" with display "inline":
367 line-height: 30px
368 width: auto
369 height: auto
370 top: 15px
371 right: -10px
372 bottom: -15px
373 left: 10px
374 margin-top: 15px
375 margin-right: 30px
376 margin-bottom: 20px
377 margin-left: 10px
378 padding-top: 20px
379 padding-right: 20px
380 padding-bottom: 20px
381 padding-left: 20px
382
383 Resolved values for element "rel_positioned" with display "inline-block":
384 line-height: 30px
385 width: 150px
386 height: 100px
387 top: 15px
388 right: -10px
389 bottom: -15px
390 left: 10px
391 margin-top: 15px
392 margin-right: 30px
393 margin-bottom: 20px
394 margin-left: 10px
395 padding-top: 20px
396 padding-right: 20px
397 padding-bottom: 20px
398 padding-left: 20px
399
400 Resolved values for element "rel_positioned" with display "none":
401 line-height: 30px
402 width: 150px
403 height: 100px
404 top: 15px
405 right: auto
406 bottom: auto
407 left: 10px
408 margin-top: 15px
409 margin-right: 30px
410 margin-bottom: 20px
411 margin-left: 10px
412 padding-top: 20px
413 padding-right: 20px
414 padding-bottom: 20px
415 padding-left: 20px
416
417
418 Resolved values for element "abs_positioned" with display "block":
419 line-height: 30px
420 width: 150px
421 height: 100px
422 top: 62px
423 right: 10px
424 bottom: 15px
425 left: 212px
426 margin-top: 15px
427 margin-right: 30px
428 margin-bottom: 20px
429 margin-left: 10px
430 padding-top: 20px
431 padding-right: 20px
432 padding-bottom: 20px
433 padding-left: 20px
434
435 Resolved values for element "abs_positioned" with display "inline":
436 line-height: 30px
437 width: 150px
438 height: 100px
439 top: 62px
440 right: 10px
441 bottom: 15px
442 left: 212px
443 margin-top: 15px
444 margin-right: 30px
445 margin-bottom: 20px
446 margin-left: 10px
447 padding-top: 20px
448 padding-right: 20px
449 padding-bottom: 20px
450 padding-left: 20px
451
452 Resolved values for element "abs_positioned" with display "inline-block":
453 line-height: 30px
454 width: 150px
455 height: 100px
456 top: 62px
457 right: 10px
458 bottom: 15px
459 left: 212px
460 margin-top: 15px
461 margin-right: 30px
462 margin-bottom: 20px
463 margin-left: 10px
464 padding-top: 20px
465 padding-right: 20px
466 padding-bottom: 20px
467 padding-left: 20px
468
469 Resolved values for element "abs_positioned" with display "none":
470 line-height: 30px
471 width: 150px
472 height: 100px
473 top: auto
474 right: 10px
475 bottom: 15px
476 left: auto
477 margin-top: 15px
478 margin-right: 30px
479 margin-bottom: 20px
480 margin-left: 10px
481 padding-top: 20px
482 padding-right: 20px
483 padding-bottom: 20px
484 padding-left: 20px
485
486
269 Fixed 487 Fixed
270 Percents 488 Percents
271 EMs 489 EMs
272 Auto 490 Auto
273 Mixed 491 Mixed
492 Relative Positioned
493 Absolute Positioned
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698