Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / compositing / squashing / squash-above-fixed-2-expected.txt
1 This scenario verifies that the cyan "container" element scrolls properly with squashing enabled.
2
3 CASE 1, original layer tree:
4 {
5   "bounds": [785, 4050],
6   "children": [
7     {
8       "bounds": [785, 4050],
9       "contentsOpaque": true,
10       "drawsContent": true,
11       "children": [
12         {
13           "bounds": [400, 200],
14           "contentsOpaque": true,
15           "drawsContent": true,
16           "backfaceVisibility": "hidden",
17           "backgroundColor": "#0000FF",
18           "children": [
19             {
20               "shouldFlattenTransform": false,
21               "children": [
22                 {
23                   "bounds": [50, 50],
24                   "contentsOpaque": true,
25                   "drawsContent": true,
26                   "backfaceVisibility": "hidden",
27                   "backgroundColor": "#FF0000"
28                 },
29                 {
30                   "position": [100, 50],
31                   "bounds": [200, 4000],
32                   "drawsContent": true
33                 }
34               ]
35             }
36           ]
37         }
38       ]
39     }
40   ]
41 }
42 CASE 2, scrolling y to 80, the "container" element should remain positioned with respect to the scrolled document, the fixed-pos layer compensates for the new scroll position:
43 {
44   "bounds": [785, 4050],
45   "children": [
46     {
47       "bounds": [785, 4050],
48       "contentsOpaque": true,
49       "drawsContent": true,
50       "children": [
51         {
52           "position": [0, 80],
53           "bounds": [400, 200],
54           "contentsOpaque": true,
55           "drawsContent": true,
56           "backfaceVisibility": "hidden",
57           "backgroundColor": "#0000FF",
58           "children": [
59             {
60               "shouldFlattenTransform": false,
61               "children": [
62                 {
63                   "bounds": [50, 50],
64                   "contentsOpaque": true,
65                   "drawsContent": true,
66                   "backfaceVisibility": "hidden",
67                   "backgroundColor": "#FF0000"
68                 },
69                 {
70                   "position": [100, -30],
71                   "bounds": [200, 4000],
72                   "drawsContent": true
73                 }
74               ]
75             }
76           ]
77         }
78       ]
79     }
80   ]
81 }
82