| 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 .compositedBehind { | 8 .compositedBehind { |
| 9 width: 500px; | 9 width: 500px; |
| 10 height: 500px; | 10 height: 500px; |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 | 35 |
| 36 <script> | 36 <script> |
| 37 if (window.testRunner) { | 37 if (window.testRunner) { |
| 38 testRunner.dumpAsText(); | 38 testRunner.dumpAsText(); |
| 39 testRunner.waitUntilDone(); | 39 testRunner.waitUntilDone(); |
| 40 } | 40 } |
| 41 | 41 |
| 42 if (window.internals) { | 42 if (window.internals) { |
| 43 /* Note carefully, compositing for fixed position is _disabled_ here
*/ | 43 /* Note carefully, compositing for fixed position is _disabled_ here
*/ |
| 44 internals.settings.setAcceleratedCompositingForFixedPositionEnabled(
false); | 44 internals.settings.setAcceleratedCompositingForFixedPositionEnabled(
false); |
| 45 internals.settings.setFixedPositionCreatesStackingContext(true); | |
| 46 } | 45 } |
| 47 | 46 |
| 48 function test() | 47 function test() |
| 49 { | 48 { |
| 50 runAfterDisplay(function() { | 49 runAfterDisplay(function() { |
| 51 if (window.internals) | 50 if (window.internals) |
| 52 window.internals.startTrackingRepaints(document); | 51 window.internals.startTrackingRepaints(document); |
| 53 | 52 |
| 54 window.scrollTo(0, 100); | 53 window.scrollTo(0, 100); |
| 55 | 54 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 77 <div class="compositedBehind"> </div> | 76 <div class="compositedBehind"> </div> |
| 78 | 77 |
| 79 <div class="containerOverlapsComposited"> | 78 <div class="containerOverlapsComposited"> |
| 80 <div class="fixed"></div> | 79 <div class="fixed"></div> |
| 81 </div> | 80 </div> |
| 82 | 81 |
| 83 <pre id="layers"></pre> | 82 <pre id="layers"></pre> |
| 84 </body> | 83 </body> |
| 85 | 84 |
| 86 </html> | 85 </html> |
| OLD | NEW |