OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 | 2 |
3 <!-- | 3 <!-- |
4 This test checks that the contents of accelerated scrolling layers are properly | 4 This test checks that the contents of accelerated scrolling layers are properly |
5 updated also outside the current overflow clip. See | 5 updated also outside the current overflow clip. See |
6 https://bugs.webkit.org/show_bug.cgi?id=100524. | 6 https://bugs.webkit.org/show_bug.cgi?id=100524. |
7 --> | 7 --> |
8 | 8 |
9 <html> | 9 <html> |
10 <head> | 10 <head> |
11 <style type="text/css"> | 11 <style type="text/css"> |
12 #scroller { | 12 #scroller { |
13 overflow: scroll; | 13 overflow: scroll; |
14 -webkit-overflow-scrolling: touch; | 14 -webkit-overflow-scrolling: touch; |
15 width: 200px; | 15 width: 200px; |
16 height: 200px; | 16 height: 200px; |
17 } | 17 } |
18 | 18 |
19 #indicator { | 19 #indicator { |
20 background: red; | 20 background: red; |
21 height: 200px; | 21 height: 200px; |
22 } | 22 } |
23 | 23 |
24 #content { | 24 #content { |
25 height: 1000px; | 25 height: 1000px; |
26 } | 26 } |
27 </style> | 27 </style> |
28 <script type="text/javascript"> | 28 <script type="text/javascript"> |
| 29 if (window.internals) |
| 30 window.internals.settings.setAcceleratedCompositingForOverflowScrollEn
abled(true); |
| 31 |
29 window.addEventListener('load', function() { | 32 window.addEventListener('load', function() { |
30 if (!window.testRunner || !window.internals) { | 33 if (!window.testRunner || !window.internals) { |
31 alert('This test requires testRunner to run!'); | 34 alert('This test requires testRunner to run!'); |
32 return; | 35 return; |
33 } | 36 } |
34 testRunner.dumpAsText(false); | 37 testRunner.dumpAsText(false); |
35 | 38 |
36 var scroller = document.getElementById('scroller'); | 39 var scroller = document.getElementById('scroller'); |
37 var indicator = document.getElementById('indicator'); | 40 var indicator = document.getElementById('indicator'); |
38 | 41 |
(...skipping 16 matching lines...) Expand all Loading... |
55 </script> | 58 </script> |
56 </head> | 59 </head> |
57 <body> | 60 <body> |
58 <div id="scroller"> | 61 <div id="scroller"> |
59 <div id="indicator"></div> | 62 <div id="indicator"></div> |
60 <div id="content"></div> | 63 <div id="content"></div> |
61 </div> | 64 </div> |
62 <pre id="layerTree">This text will be replaced with the layer tree.</pre> | 65 <pre id="layerTree">This text will be replaced with the layer tree.</pre> |
63 </body> | 66 </body> |
64 </html> | 67 </html> |
OLD | NEW |