OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <style> | 4 <style> |
5 html { | 5 html { |
6 -webkit-overflow-scrolling: touch; | 6 -webkit-overflow-scrolling: touch; |
7 } | 7 } |
8 | 8 |
9 textarea { | 9 textarea { |
10 width: 200px; | 10 width: 200px; |
11 height: 120px; | 11 height: 120px; |
12 margin: 10px; | 12 margin: 10px; |
13 border: 1px solid black; | 13 border: 1px solid black; |
14 display: inline-block; | 14 display: inline-block; |
15 font-size: 24pt; | 15 font-size: 24pt; |
16 } | 16 } |
17 </style> | 17 </style> |
18 <script> | 18 <script> |
19 if (window.testRunner) | 19 if (window.testRunner) |
20 testRunner.dumpAsText(); | 20 testRunner.dumpAsText(); |
21 | 21 |
| 22 if (window.internals) |
| 23 window.internals.settings.setAcceleratedCompositingForOverflowScrollEnable
d(true); |
| 24 |
22 function testScrollability(element) | 25 function testScrollability(element) |
23 { | 26 { |
24 // This will cause scrollable element content layers to be offset by y=50
with respect to their scrolling container. | 27 // This will cause scrollable element content layers to be offset by y=50
with respect to their scrolling container. |
25 element.scrollTop = 50; | 28 element.scrollTop = 50; |
26 } | 29 } |
27 | 30 |
28 function doTest() | 31 function doTest() |
29 { | 32 { |
30 var divs = document.querySelectorAll('body > textarea'); | 33 var divs = document.querySelectorAll('body > textarea'); |
31 for (var i = 0; i < divs.length; ++i) | 34 for (var i = 0; i < divs.length; ++i) |
(...skipping 11 matching lines...) Expand all Loading... |
43 Lorem ipsum dolor sit amet, consectetur adipisicing elit. | 46 Lorem ipsum dolor sit amet, consectetur adipisicing elit. |
44 </textarea> | 47 </textarea> |
45 | 48 |
46 <textarea disabled> | 49 <textarea disabled> |
47 Lorem ipsum dolor sit amet, consectetur adipisicing elit. | 50 Lorem ipsum dolor sit amet, consectetur adipisicing elit. |
48 </textarea> | 51 </textarea> |
49 | 52 |
50 <pre id="results">This test requires DRT.</pre> | 53 <pre id="results">This test requires DRT.</pre> |
51 </body> | 54 </body> |
52 </html> | 55 </html> |
OLD | NEW |