OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html id="htmlTag"> | 2 <html id="htmlTag"> |
3 | 3 |
4 <head> | 4 <head> |
5 <script src="../../resources/run-after-display.js"></script> | 5 <script src="../../resources/run-after-display.js"></script> |
6 <style> | 6 <style> |
7 #fixed { | 7 #fixed { |
8 -webkit-backface-visibility: hidden; | 8 -webkit-backface-visibility: hidden; |
9 position: fixed; | 9 position: fixed; |
10 z-index: 1; | 10 z-index: 1; |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 } | 46 } |
47 | 47 |
48 </style> | 48 </style> |
49 | 49 |
50 <script> | 50 <script> |
51 if (window.testRunner) { | 51 if (window.testRunner) { |
52 testRunner.dumpAsText(); | 52 testRunner.dumpAsText(); |
53 testRunner.waitUntilDone(); | 53 testRunner.waitUntilDone(); |
54 } | 54 } |
55 | 55 |
56 if (window.internals) | |
57 internals.settings.setLayerSquashingEnabled(true); | |
58 | |
59 function runTest() | 56 function runTest() |
60 { | 57 { |
61 if (!window.internals) | 58 if (!window.internals) |
62 return; | 59 return; |
63 | 60 |
64 // Display the test results only after test is done so that it does not
affect repaint rect results. | 61 // Display the test results only after test is done so that it does not
affect repaint rect results. |
65 document.getElementById('testResults').style.display = "block"; | 62 document.getElementById('testResults').style.display = "block"; |
66 // Case 1 | 63 // Case 1 |
67 document.getElementById('Case1').textContent = window.internals.layerTre
eAsText(document, internals.LAYER_TREE_INCLUDES_REPAINT_RECTS); | 64 document.getElementById('Case1').textContent = window.internals.layerTre
eAsText(document, internals.LAYER_TREE_INCLUDES_REPAINT_RECTS); |
68 | 65 |
(...skipping 23 matching lines...) Expand all Loading... |
92 <div id="testResults"> | 89 <div id="testResults"> |
93 CASE 1, original layer tree: | 90 CASE 1, original layer tree: |
94 <pre id="Case1"></pre> | 91 <pre id="Case1"></pre> |
95 | 92 |
96 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 n
ew scroll position: | 93 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 n
ew scroll position: |
97 <pre id="Case2"></pre> | 94 <pre id="Case2"></pre> |
98 </div> | 95 </div> |
99 | 96 |
100 </body> | 97 </body> |
101 </html> | 98 </html> |
OLD | NEW |