Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / platform / android / 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               "children": [
21                 {
22                   "bounds": [50, 50],
23                   "contentsOpaque": true,
24                   "drawsContent": true,
25                   "backfaceVisibility": "hidden",
26                   "backgroundColor": "#FF0000"
27                 },
28                 {
29                   "position": [100, 50],
30                   "bounds": [200, 4000],
31                   "drawsContent": true
32                 }
33               ]
34             }
35           ]
36         }
37       ]
38     }
39   ]
40 }
41 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:
42 {
43   "bounds": [785, 4050],
44   "children": [
45     {
46       "bounds": [785, 4050],
47       "contentsOpaque": true,
48       "drawsContent": true,
49       "children": [
50         {
51           "position": [0, 80],
52           "bounds": [400, 200],
53           "contentsOpaque": true,
54           "drawsContent": true,
55           "backfaceVisibility": "hidden",
56           "backgroundColor": "#0000FF",
57           "children": [
58             {
59               "children": [
60                 {
61                   "bounds": [50, 50],
62                   "contentsOpaque": true,
63                   "drawsContent": true,
64                   "backfaceVisibility": "hidden",
65                   "backgroundColor": "#FF0000"
66                 },
67                 {
68                   "position": [100, -30],
69                   "bounds": [200, 4000],
70                   "drawsContent": true
71                 }
72               ]
73             }
74           ]
75         }
76       ]
77     }
78   ]
79 }
80