OLD | NEW |
1 This tests that squashed layers' offset from renderer is updated properly. If no
t properly updated, the two divs will appear to be aligned vertically in the pix
el results, while really the blue div ('squashed') should be offset 100px left o
f the green ('host'). | 1 This tests that squashed layers' offset from renderer is updated properly. If no
t properly updated, the two divs will appear to be aligned vertically in the pix
el results, while really the blue div ('squashed') should be offset 100px left o
f the green ('host'). |
2 | 2 |
3 { | 3 { |
| 4 "name": "Content Root Layer", |
4 "bounds": [800, 600], | 5 "bounds": [800, 600], |
5 "children": [ | 6 "children": [ |
6 { | 7 { |
| 8 "name": "LayoutView #document", |
7 "bounds": [800, 600], | 9 "bounds": [800, 600], |
8 "contentsOpaque": true, | 10 "contentsOpaque": true, |
9 "drawsContent": true, | 11 "drawsContent": true, |
10 "children": [ | 12 "children": [ |
11 { | 13 { |
| 14 "name": "LayoutBlockFlow (positioned) DIV id='background'", |
12 "position": [8, 50], | 15 "position": [8, 50], |
13 "bounds": [100, 100], | 16 "bounds": [100, 100], |
14 "contentsOpaque": true, | 17 "contentsOpaque": true, |
15 "drawsContent": true, | 18 "drawsContent": true, |
16 "backgroundColor": "#FFFF00" | 19 "backgroundColor": "#FFFF00" |
17 }, | 20 }, |
18 { | 21 { |
| 22 "name": "Squashing Containment Layer", |
19 "shouldFlattenTransform": false, | 23 "shouldFlattenTransform": false, |
20 "children": [ | 24 "children": [ |
21 { | 25 { |
| 26 "name": "LayoutBlockFlow (positioned) DIV id='host'", |
22 "position": [100, 100], | 27 "position": [100, 100], |
23 "bounds": [100, 100], | 28 "bounds": [100, 100], |
24 "contentsOpaque": true, | 29 "contentsOpaque": true, |
25 "drawsContent": true, | 30 "drawsContent": true, |
26 "backgroundColor": "#008000" | 31 "backgroundColor": "#008000" |
27 }, | 32 }, |
28 { | 33 { |
| 34 "name": "Squashing Layer (first squashed layer: LayoutBlockFlow (r
elative positioned) DIV id='squashed')", |
29 "position": [8, 8], | 35 "position": [8, 8], |
30 "bounds": [100, 100], | 36 "bounds": [100, 100], |
31 "drawsContent": true | 37 "drawsContent": true |
32 } | 38 } |
33 ] | 39 ] |
34 } | 40 } |
35 ] | 41 ] |
36 } | 42 } |
37 ] | 43 ] |
38 } | 44 } |
39 | 45 |
OLD | NEW |