1 This scenario verifies that the cyan "container" element scrolls properly with squashing enabled. The "container" element should not squash into a composited layer mapping owned by the fixed position layer or its descendant, since this would make it behave like a fixed position element during composited scrolling.
3 CASE 1, original layer tree:
9 "contentsOpaque": true,
14 "contentsOpaque": true,
16 "backfaceVisibility": "hidden",
17 "backgroundColor": "#0000FF",
21 "contentsOpaque": true,
23 "backfaceVisibility": "hidden",
24 "backgroundColor": "#FF0000"
29 "position": [100, 50],
30 "bounds": [200, 4000],
31 "contentsOpaque": true,
33 "backgroundColor": "#00FFFF"
39 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:
41 "bounds": [785, 4050],
44 "bounds": [785, 4050],
45 "contentsOpaque": true,
51 "contentsOpaque": true,
53 "backfaceVisibility": "hidden",
54 "backgroundColor": "#0000FF",
58 "contentsOpaque": true,
60 "backfaceVisibility": "hidden",
61 "backgroundColor": "#FF0000"
66 "position": [100, 50],
67 "bounds": [200, 4000],
68 "contentsOpaque": true,
70 "backgroundColor": "#00FFFF"