| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 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 | 7 |
| 8 .fixedContainer { | 8 .fixedContainer { |
| 9 position: fixed; | 9 position: fixed; |
| 10 overflow:hidden; | 10 overflow:hidden; |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 | 25 |
| 26 <script> | 26 <script> |
| 27 if (window.testRunner) { | 27 if (window.testRunner) { |
| 28 testRunner.dumpAsText(); | 28 testRunner.dumpAsText(); |
| 29 testRunner.waitUntilDone(); | 29 testRunner.waitUntilDone(); |
| 30 } | 30 } |
| 31 | 31 |
| 32 if (window.internals) { | 32 if (window.internals) { |
| 33 /* Note carefully, compositing for fixed position is _disabled_ here */ | 33 /* Note carefully, compositing for fixed position is _disabled_ here */ |
| 34 internals.settings.setAcceleratedCompositingForFixedPositionEnabled(fals
e); | 34 internals.settings.setAcceleratedCompositingForFixedPositionEnabled(fals
e); |
| 35 internals.settings.setFixedPositionCreatesStackingContext(true); | |
| 36 } | 35 } |
| 37 | 36 |
| 38 function test() | 37 function test() |
| 39 { | 38 { |
| 40 runAfterDisplay(function() { | 39 runAfterDisplay(function() { |
| 41 if (window.internals) | 40 if (window.internals) |
| 42 window.internals.startTrackingRepaints(document); | 41 window.internals.startTrackingRepaints(document); |
| 43 | 42 |
| 44 window.scrollTo(0, 100); | 43 window.scrollTo(0, 100); |
| 45 | 44 |
| (...skipping 26 matching lines...) Expand all Loading... |
| 72 | 71 |
| 73 <!-- Scrolling should not cause either div to move around on the viewport. --> | 72 <!-- Scrolling should not cause either div to move around on the viewport. --> |
| 74 <div class="fixedContainer"> | 73 <div class="fixedContainer"> |
| 75 <div id="foo"></div> | 74 <div id="foo"></div> |
| 76 </div> | 75 </div> |
| 77 | 76 |
| 78 <pre id="layers"></pre> | 77 <pre id="layers"></pre> |
| 79 </body> | 78 </body> |
| 80 | 79 |
| 81 </html> | 80 </html> |
| OLD | NEW |