OLD | NEW |
| (Empty) |
1 <!DOCTYPE html> | |
2 | |
3 <html> | |
4 <head> | |
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> | |
7 <script> | |
8 // Tests set 1 of opt-in permutations, ensuring that each layout in the | |
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 | |
11 // broken due to this promote. | |
12 // | |
13 // Note that permutation set 1 specifically tests the permutations for which | |
14 // the 'sibling' is placed at the index 1 of the paint order. | |
15 if (window.internals) { | |
16 window.internals.settings.setAcceleratedCompositingForOverflowScrollEnable
d(true); | |
17 window.internals.settings.setCompositorDrivenAcceleratedScrollingEnabled(f
alse); | |
18 } | |
19 | |
20 function doTest() | |
21 { | |
22 buildDom(); | |
23 runOptInPermutationSet(1); | |
24 } | |
25 | |
26 window.addEventListener('load', doTest, false); | |
27 </script> | |
28 </head> | |
29 | |
30 <body> | |
31 </body> | |
32 </html> | |
OLD | NEW |