| OLD | NEW |
| 1 This scenario verifies that the cyan "container" element scrolls properly with s
quashing enabled. The "container" element should not squash into a composited la
yer mapping owned by the fixed position layer or its descendant, since this woul
d make it behave like a fixed position element during composited scrolling. | 1 This scenario verifies that the cyan "container" element scrolls properly with s
quashing enabled. The "container" element should not squash into a composited la
yer mapping owned by the fixed position layer or its descendant, since this woul
d make it behave like a fixed position element during composited scrolling. |
| 2 | 2 |
| 3 CASE 1, original layer tree: | 3 CASE 1, original layer tree: |
| 4 { | 4 { |
| 5 "name": "Content Root Layer", |
| 5 "bounds": [785, 4050], | 6 "bounds": [785, 4050], |
| 6 "children": [ | 7 "children": [ |
| 7 { | 8 { |
| 9 "name": "LayoutView #document", |
| 8 "bounds": [785, 4050], | 10 "bounds": [785, 4050], |
| 9 "contentsOpaque": true, | 11 "contentsOpaque": true, |
| 10 "drawsContent": true, | 12 "drawsContent": true, |
| 11 "children": [ | 13 "children": [ |
| 12 { | 14 { |
| 15 "name": "LayoutBlockFlow (positioned) DIV id='fixed'", |
| 13 "bounds": [400, 200], | 16 "bounds": [400, 200], |
| 14 "contentsOpaque": true, | 17 "contentsOpaque": true, |
| 15 "drawsContent": true, | 18 "drawsContent": true, |
| 16 "backfaceVisibility": "hidden", | 19 "backfaceVisibility": "hidden", |
| 17 "backgroundColor": "#0000FF", | 20 "backgroundColor": "#0000FF", |
| 18 "children": [ | 21 "children": [ |
| 19 { | 22 { |
| 23 "name": "LayoutBlockFlow DIV id='compositedInsideFixed'", |
| 20 "bounds": [50, 50], | 24 "bounds": [50, 50], |
| 21 "contentsOpaque": true, | 25 "contentsOpaque": true, |
| 22 "drawsContent": true, | 26 "drawsContent": true, |
| 23 "backfaceVisibility": "hidden", | 27 "backfaceVisibility": "hidden", |
| 24 "backgroundColor": "#FF0000" | 28 "backgroundColor": "#FF0000" |
| 25 } | 29 } |
| 26 ] | 30 ] |
| 27 }, | 31 }, |
| 28 { | 32 { |
| 33 "name": "LayoutBlockFlow (positioned) DIV id='container'", |
| 29 "position": [100, 50], | 34 "position": [100, 50], |
| 30 "bounds": [200, 4000], | 35 "bounds": [200, 4000], |
| 31 "contentsOpaque": true, | 36 "contentsOpaque": true, |
| 32 "drawsContent": true, | 37 "drawsContent": true, |
| 33 "backgroundColor": "#00FFFF" | 38 "backgroundColor": "#00FFFF" |
| 34 } | 39 } |
| 35 ] | 40 ] |
| 36 } | 41 } |
| 37 ] | 42 ] |
| 38 } | 43 } |
| 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 s
croll position: | 44 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 s
croll position: |
| 40 { | 45 { |
| 46 "name": "Content Root Layer", |
| 41 "bounds": [785, 4050], | 47 "bounds": [785, 4050], |
| 42 "children": [ | 48 "children": [ |
| 43 { | 49 { |
| 50 "name": "LayoutView #document", |
| 44 "bounds": [785, 4050], | 51 "bounds": [785, 4050], |
| 45 "contentsOpaque": true, | 52 "contentsOpaque": true, |
| 46 "drawsContent": true, | 53 "drawsContent": true, |
| 47 "children": [ | 54 "children": [ |
| 48 { | 55 { |
| 56 "name": "LayoutBlockFlow (positioned) DIV id='fixed'", |
| 49 "position": [0, 80], | 57 "position": [0, 80], |
| 50 "bounds": [400, 200], | 58 "bounds": [400, 200], |
| 51 "contentsOpaque": true, | 59 "contentsOpaque": true, |
| 52 "drawsContent": true, | 60 "drawsContent": true, |
| 53 "backfaceVisibility": "hidden", | 61 "backfaceVisibility": "hidden", |
| 54 "backgroundColor": "#0000FF", | 62 "backgroundColor": "#0000FF", |
| 55 "children": [ | 63 "children": [ |
| 56 { | 64 { |
| 65 "name": "LayoutBlockFlow DIV id='compositedInsideFixed'", |
| 57 "bounds": [50, 50], | 66 "bounds": [50, 50], |
| 58 "contentsOpaque": true, | 67 "contentsOpaque": true, |
| 59 "drawsContent": true, | 68 "drawsContent": true, |
| 60 "backfaceVisibility": "hidden", | 69 "backfaceVisibility": "hidden", |
| 61 "backgroundColor": "#FF0000" | 70 "backgroundColor": "#FF0000" |
| 62 } | 71 } |
| 63 ] | 72 ] |
| 64 }, | 73 }, |
| 65 { | 74 { |
| 75 "name": "LayoutBlockFlow (positioned) DIV id='container'", |
| 66 "position": [100, 50], | 76 "position": [100, 50], |
| 67 "bounds": [200, 4000], | 77 "bounds": [200, 4000], |
| 68 "contentsOpaque": true, | 78 "contentsOpaque": true, |
| 69 "drawsContent": true, | 79 "drawsContent": true, |
| 70 "backgroundColor": "#00FFFF" | 80 "backgroundColor": "#00FFFF" |
| 71 } | 81 } |
| 72 ] | 82 ] |
| 73 } | 83 } |
| 74 ] | 84 ] |
| 75 } | 85 } |
| 76 | 86 |
| OLD | NEW |