OLD | NEW |
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-ou
t of the squashing layer when they change overlapping status with respect to the
composited layer underneath. | 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-ou
t of the squashing layer when they change overlapping status with respect to the
composited layer underneath. |
2 | 2 |
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 corre
ct (i.e. scrolls properly) when the squashing layer is on top of a fixed-positio
n composited layer. | 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 corre
ct (i.e. scrolls properly) when the squashing layer is on top of a fixed-positio
n composited layer. |
4 | 4 |
5 CASE 1, original layer tree: | 5 CASE 1, original layer tree: |
6 { | 6 { |
7 "bounds": [785, 1400], | 7 "bounds": [785, 1400], |
8 "children": [ | 8 "children": [ |
9 { | 9 { |
10 "bounds": [785, 1400], | 10 "bounds": [785, 1400], |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 "bounds": [785, 1400], | 44 "bounds": [785, 1400], |
45 "children": [ | 45 "children": [ |
46 { | 46 { |
47 "bounds": [785, 1400], | 47 "bounds": [785, 1400], |
48 "contentsOpaque": true, | 48 "contentsOpaque": true, |
49 "drawsContent": true, | 49 "drawsContent": true, |
50 "paintInvalidations": [ | 50 "paintInvalidations": [ |
51 { | 51 { |
52 "object": "LayoutBlockFlow (relative positioned) DIV id='paragraph-f'
class='overlapping lime'", | 52 "object": "LayoutBlockFlow (relative positioned) DIV id='paragraph-f'
class='overlapping lime'", |
53 "rect": [0, 500, 200, 100], | 53 "rect": [0, 500, 200, 100], |
54 "reason": "layer" | 54 "reason": "subtree" |
55 }, | 55 }, |
56 { | 56 { |
57 "object": "LayoutBlockFlow (relative positioned) DIV id='paragraph-e'
class='overlapping cyan'", | 57 "object": "LayoutBlockFlow (relative positioned) DIV id='paragraph-e'
class='overlapping cyan'", |
58 "rect": [0, 200, 200, 100], | 58 "rect": [0, 200, 200, 100], |
59 "reason": "layer" | 59 "reason": "subtree" |
60 }, | 60 }, |
61 { | 61 { |
62 "object": "LayoutBlockFlow (relative positioned) DIV id='paragraph-b'
class='overlapping lime'", | 62 "object": "LayoutBlockFlow (relative positioned) DIV id='paragraph-b'
class='overlapping lime'", |
63 "rect": [0, 100, 200, 100], | 63 "rect": [0, 100, 200, 100], |
64 "reason": "compositing update" | 64 "reason": "compositing update" |
65 }, | 65 }, |
66 { | 66 { |
67 "object": "LayoutBlockFlow (relative positioned) DIV id='paragraph-d'
class='overlapping lime'", | 67 "object": "LayoutBlockFlow (relative positioned) DIV id='paragraph-d'
class='overlapping lime'", |
68 "rect": [0, 100, 200, 100], | 68 "rect": [0, 100, 200, 100], |
69 "reason": "layer" | 69 "reason": "subtree" |
70 }, | 70 }, |
71 { | 71 { |
72 "object": "LayoutBlockFlow (relative positioned) DIV id='paragraph-c'
class='overlapping cyan'", | 72 "object": "LayoutBlockFlow (relative positioned) DIV id='paragraph-c'
class='overlapping cyan'", |
73 "rect": [0, 0, 200, 100], | 73 "rect": [0, 0, 200, 100], |
74 "reason": "layer" | 74 "reason": "subtree" |
75 } | 75 } |
76 ], | 76 ], |
77 "children": [ | 77 "children": [ |
78 { | 78 { |
79 "position": [100, 230], | 79 "position": [100, 230], |
80 "bounds": [300, 300], | 80 "bounds": [300, 300], |
81 "contentsOpaque": true, | 81 "contentsOpaque": true, |
82 "drawsContent": true, | 82 "drawsContent": true, |
83 "backgroundColor": "#D3D3D3" | 83 "backgroundColor": "#D3D3D3" |
84 }, | 84 }, |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 "bounds": [785, 1400], | 169 "bounds": [785, 1400], |
170 "children": [ | 170 "children": [ |
171 { | 171 { |
172 "bounds": [785, 1400], | 172 "bounds": [785, 1400], |
173 "contentsOpaque": true, | 173 "contentsOpaque": true, |
174 "drawsContent": true, | 174 "drawsContent": true, |
175 "paintInvalidations": [ | 175 "paintInvalidations": [ |
176 { | 176 { |
177 "object": "LayoutBlockFlow (relative positioned) DIV id='paragraph-g'
class='overlapping cyan'", | 177 "object": "LayoutBlockFlow (relative positioned) DIV id='paragraph-g'
class='overlapping cyan'", |
178 "rect": [0, 600, 200, 100], | 178 "rect": [0, 600, 200, 100], |
179 "reason": "layer" | 179 "reason": "subtree" |
180 }, | 180 }, |
181 { | 181 { |
182 "object": "LayoutBlockFlow (relative positioned) DIV id='paragraph-c'
class='overlapping cyan'", | 182 "object": "LayoutBlockFlow (relative positioned) DIV id='paragraph-c'
class='overlapping cyan'", |
183 "rect": [0, 200, 200, 100], | 183 "rect": [0, 200, 200, 100], |
184 "reason": "compositing update" | 184 "reason": "compositing update" |
185 }, | 185 }, |
186 { | 186 { |
187 "object": "LayoutBlockFlow (relative positioned) DIV id='paragraph-f'
class='overlapping lime'", | 187 "object": "LayoutBlockFlow (relative positioned) DIV id='paragraph-f'
class='overlapping lime'", |
188 "rect": [0, 200, 200, 100], | 188 "rect": [0, 200, 200, 100], |
189 "reason": "layer" | 189 "reason": "subtree" |
190 }, | 190 }, |
191 { | 191 { |
192 "object": "LayoutBlockFlow (relative positioned) DIV id='paragraph-e'
class='overlapping cyan'", | 192 "object": "LayoutBlockFlow (relative positioned) DIV id='paragraph-e'
class='overlapping cyan'", |
193 "rect": [0, 100, 200, 100], | 193 "rect": [0, 100, 200, 100], |
194 "reason": "layer" | 194 "reason": "subtree" |
195 }, | 195 }, |
196 { | 196 { |
197 "object": "LayoutBlockFlow (relative positioned) DIV id='paragraph-d'
class='overlapping lime'", | 197 "object": "LayoutBlockFlow (relative positioned) DIV id='paragraph-d'
class='overlapping lime'", |
198 "rect": [0, 0, 200, 100], | 198 "rect": [0, 0, 200, 100], |
199 "reason": "layer" | 199 "reason": "subtree" |
200 } | 200 } |
201 ], | 201 ], |
202 "children": [ | 202 "children": [ |
203 { | 203 { |
204 "position": [100, 320], | 204 "position": [100, 320], |
205 "bounds": [300, 300], | 205 "bounds": [300, 300], |
206 "contentsOpaque": true, | 206 "contentsOpaque": true, |
207 "drawsContent": true, | 207 "drawsContent": true, |
208 "backgroundColor": "#D3D3D3" | 208 "backgroundColor": "#D3D3D3" |
209 }, | 209 }, |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
246 } | 246 } |
247 ] | 247 ] |
248 } | 248 } |
249 ] | 249 ] |
250 } | 250 } |
251 ] | 251 ] |
252 } | 252 } |
253 ] | 253 ] |
254 } | 254 } |
255 | 255 |
OLD | NEW |