OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <style> | 4 <style> |
5 | 5 |
6 #backgroundFixed { | 6 #backgroundFixed { |
7 -webkit-transform: translatez(0); | 7 -webkit-transform: translatez(0); |
8 position: fixed; | 8 position: fixed; |
9 height: 400px; | 9 height: 400px; |
10 width: 400px; | 10 width: 400px; |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 testRunner.dumpAsText(); | 63 testRunner.dumpAsText(); |
64 | 64 |
65 if (window.internals) | 65 if (window.internals) |
66 internals.settings.setLayerSquashingEnabled(true); | 66 internals.settings.setLayerSquashingEnabled(true); |
67 | 67 |
68 function runTest() | 68 function runTest() |
69 { | 69 { |
70 if (!window.internals) | 70 if (!window.internals) |
71 return; | 71 return; |
72 | 72 |
73 testRunner.display(); | |
74 | |
75 // Case 1 | 73 // Case 1 |
76 document.getElementById('Case1').textContent = window.internals.layerTre
eAsText(document, internals.LAYER_TREE_INCLUDES_REPAINT_RECTS); | 74 document.getElementById('Case1').textContent = window.internals.layerTre
eAsText(document, internals.LAYER_TREE_INCLUDES_REPAINT_RECTS); |
77 | 75 |
78 // Case 2 | 76 // Case 2 |
79 window.internals.startTrackingRepaints(document); | 77 window.internals.startTrackingRepaints(document); |
80 window.scrollTo(0, 10); | 78 window.scrollTo(0, 10); |
81 document.getElementById('Case2').textContent = window.internals.layerTre
eAsText(document, internals.LAYER_TREE_INCLUDES_REPAINT_RECTS); | 79 document.getElementById('Case2').textContent = window.internals.layerTre
eAsText(document, internals.LAYER_TREE_INCLUDES_REPAINT_RECTS); |
82 window.internals.stopTrackingRepaints(document); | 80 window.internals.stopTrackingRepaints(document); |
83 | 81 |
84 // Case 3 | 82 // Case 3 |
(...skipping 30 matching lines...) Expand all Loading... |
115 CASE 1, original layer tree: | 113 CASE 1, original layer tree: |
116 <pre id="Case1"></pre> | 114 <pre id="Case1"></pre> |
117 | 115 |
118 CASE 2, scrolling y by 10 pixels, both the "container" and "inner" should sc
roll properly. | 116 CASE 2, scrolling y by 10 pixels, both the "container" and "inner" should sc
roll properly. |
119 <pre id="Case2"></pre> | 117 <pre id="Case2"></pre> |
120 | 118 |
121 CASE 3, scrolling y further so that "inner" no longer overlaps the fixed-pos
layer, then the stacking context of "container" includes the "innerScrolling" l
ayer, and doubles in width: | 119 CASE 3, scrolling y further so that "inner" no longer overlaps the fixed-pos
layer, then the stacking context of "container" includes the "innerScrolling" l
ayer, and doubles in width: |
122 <pre id="Case3"></pre> | 120 <pre id="Case3"></pre> |
123 </div> | 121 </div> |
124 </body> | 122 </body> |
OLD | NEW |