Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / compositing / squashing / squash-above-fixed-1-expected.txt
blob57a8a2594b326b2a867460e652712bc42c033c89
1 The gray div is a composited fixed-position element, and the cyan/lime elements should be squashed together on top. When scrolling, paragraphs may pop in-and-out of the squashing layer when they change overlapping status with respect to the composited layer underneath.
3 This scenario tests (1) that content repaints correctly as layers pop in and out of squashing, and (2) that the positioning of the squashing layer remains correct (i.e. scrolls properly) when the squashing layer is on top of a fixed-position composited layer.
5 CASE 1, original layer tree:
7   "bounds": [785, 1400],
8   "children": [
9     {
10       "bounds": [785, 1400],
11       "contentsOpaque": true,
12       "drawsContent": true,
13       "children": [
14         {
15           "position": [100, 150],
16           "bounds": [300, 300],
17           "contentsOpaque": true,
18           "drawsContent": true,
19           "backgroundColor": "#D3D3D3"
20         },
21         {
22           "shouldFlattenTransform": false,
23           "children": [
24             {
25               "position": [0, 100],
26               "bounds": [200, 100],
27               "contentsOpaque": true,
28               "drawsContent": true,
29               "backgroundColor": "#00FF00"
30             },
31             {
32               "position": [0, 200],
33               "bounds": [200, 300],
34               "drawsContent": true
35             }
36           ]
37         }
38       ]
39     }
40   ]
42 CASE 2, scrolling y to 80, new layers will be squashed, so things repaint:
44   "bounds": [785, 1400],
45   "children": [
46     {
47       "bounds": [785, 1400],
48       "contentsOpaque": true,
49       "drawsContent": true,
50       "repaintRects": [
51         [0, 500, 200, 100],
52         [0, 200, 200, 100],
53         [0, 100, 200, 100],
54         [0, 100, 200, 100],
55         [0, 0, 200, 100]
56       ],
57       "children": [
58         {
59           "position": [100, 230],
60           "bounds": [300, 300],
61           "contentsOpaque": true,
62           "drawsContent": true,
63           "backgroundColor": "#D3D3D3"
64         },
65         {
66           "shouldFlattenTransform": false,
67           "children": [
68             {
69               "position": [0, 200],
70               "bounds": [200, 100],
71               "contentsOpaque": true,
72               "drawsContent": true,
73               "backgroundColor": "#00FFFF",
74               "repaintRects": [
75                 [0, 0, 200, 100]
76               ]
77             },
78             {
79               "position": [0, 300],
80               "bounds": [200, 300],
81               "drawsContent": true,
82               "repaintRects": [
83                 [0, 200, 200, 100],
84                 [0, 100, 200, 100],
85                 [0, 0, 200, 100]
86               ]
87             }
88           ]
89         }
90       ]
91     }
92   ]
94 CASE 3, scrolling y to 120, no repaints expected:
96   "bounds": [785, 1400],
97   "children": [
98     {
99       "bounds": [785, 1400],
100       "contentsOpaque": true,
101       "drawsContent": true,
102       "children": [
103         {
104           "position": [100, 270],
105           "bounds": [300, 300],
106           "contentsOpaque": true,
107           "drawsContent": true,
108           "backgroundColor": "#D3D3D3"
109         },
110         {
111           "shouldFlattenTransform": false,
112           "children": [
113             {
114               "position": [0, 200],
115               "bounds": [200, 100],
116               "contentsOpaque": true,
117               "drawsContent": true,
118               "backgroundColor": "#00FFFF"
119             },
120             {
121               "position": [0, 300],
122               "bounds": [200, 300],
123               "drawsContent": true
124             }
125           ]
126         }
127       ]
128     }
129   ]
131 CASE 4, scrolling y to 170 new layers will be squashed, so things repaint:
133   "bounds": [785, 1400],
134   "children": [
135     {
136       "bounds": [785, 1400],
137       "contentsOpaque": true,
138       "drawsContent": true,
139       "repaintRects": [
140         [0, 600, 200, 100],
141         [0, 200, 200, 100],
142         [0, 200, 200, 100],
143         [0, 100, 200, 100],
144         [0, 0, 200, 100]
145       ],
146       "children": [
147         {
148           "position": [100, 320],
149           "bounds": [300, 300],
150           "contentsOpaque": true,
151           "drawsContent": true,
152           "backgroundColor": "#D3D3D3"
153         },
154         {
155           "shouldFlattenTransform": false,
156           "children": [
157             {
158               "position": [0, 300],
159               "bounds": [200, 100],
160               "contentsOpaque": true,
161               "drawsContent": true,
162               "backgroundColor": "#00FF00",
163               "repaintRects": [
164                 [0, 0, 200, 100]
165               ]
166             },
167             {
168               "position": [0, 400],
169               "bounds": [200, 300],
170               "drawsContent": true,
171               "repaintRects": [
172                 [0, 200, 200, 100],
173                 [0, 100, 200, 100],
174                 [0, 0, 200, 100]
175               ]
176             }
177           ]
178         }
179       ]
180     }
181   ]