| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 | 2 |
| 3 <html> | 3 <html> |
| 4 <head> | 4 <head> |
| 5 <link rel="stylesheet" href="resources/automatically-opt-into-composited-scrol
ling.css"> | 5 <link rel="stylesheet" href="resources/automatically-opt-into-composited-scrol
ling.css"> |
| 6 <script src="resources/automatically-opt-into-composited-scrolling.js"></scrip
t> | 6 <script src="resources/automatically-opt-into-composited-scrolling.js"></scrip
t> |
| 7 <script> | 7 <script> |
| 8 // Tests set 2 of opt-in permutations, ensuring that each layout in the | 8 // Tests set 2 of opt-in permutations, ensuring that each layout in the |
| 9 // permutation set causes 'container' to be promoted to a stacking container | 9 // permutation set causes 'container' to be promoted to a stacking container |
| 10 // if possible, and making sure that the stacking and paint orders are never | 10 // if possible, and making sure that the stacking and paint orders are never |
| 11 // broken due to this promote. | 11 // broken due to this promote. |
| 12 // | 12 // |
| 13 // Note that permutation set 2 specifically tests the permutations for which | 13 // Note that permutation set 2 specifically tests the permutations for which |
| 14 // the 'sibling' is placed at the index 2 of the paint order. | 14 // the 'sibling' is placed at the index 2 of the paint order. |
| 15 if (window.internals) | 15 if (window.internals) { |
| 16 window.internals.settings.setAcceleratedCompositingForOverflowScrollEnable
d(true); | 16 window.internals.settings.setAcceleratedCompositingForOverflowScrollEnable
d(true); |
| 17 window.internals.settings.setCompositorDrivenAcceleratedScrollingEnabled(f
alse); |
| 18 } |
| 17 | 19 |
| 18 function doTest() | 20 function doTest() |
| 19 { | 21 { |
| 20 buildDom(); | 22 buildDom(); |
| 21 runOptInPermutationSet(2); | 23 runOptInPermutationSet(2); |
| 22 } | 24 } |
| 23 | 25 |
| 24 window.addEventListener('load', doTest, false); | 26 window.addEventListener('load', doTest, false); |
| 25 </script> | 27 </script> |
| 26 </head> | 28 </head> |
| 27 | 29 |
| 28 <body> | 30 <body> |
| 29 </body> | 31 </body> |
| 30 </html> | 32 </html> |
| OLD | NEW |