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 background-color: #CCCCCC; | 16 background-color: #CCCCCC; |
17 } | 17 } |
18 </style> | 18 </style> |
19 <script> | 19 <script> |
20 if (window.testRunner) | 20 if (window.testRunner) |
21 testRunner.dumpAsText(); | 21 testRunner.dumpAsText(); |
22 | 22 |
23 if (window.internals) | 23 if (window.internals) |
24 window.internals.settings.setAcceleratedCompositingForOverflowScrollEnable
d(true); | 24 window.internals.settings.setAcceleratedCompositingForOverflowScrollEnable
dMode(window.internals.settings.AcceleratedCompositingForOverflowScrollEnabled); |
25 | 25 |
26 function testScrollability(element) | 26 function testScrollability(element) |
27 { | 27 { |
28 // This will cause scrollable element content layers to be offset by y=50
with respect to their scrolling container. | 28 // This will cause scrollable element content layers to be offset by y=50
with respect to their scrolling container. |
29 element.scrollTop = 50; | 29 element.scrollTop = 50; |
30 } | 30 } |
31 | 31 |
32 function doTest() | 32 function doTest() |
33 { | 33 { |
34 var divs = document.querySelectorAll('body > textarea'); | 34 var divs = document.querySelectorAll('body > textarea'); |
(...skipping 12 matching lines...) Expand all Loading... |
47 Lorem ipsum dolor sit amet, consectetur adipisicing elit. | 47 Lorem ipsum dolor sit amet, consectetur adipisicing elit. |
48 </textarea> | 48 </textarea> |
49 | 49 |
50 <textarea disabled> | 50 <textarea disabled> |
51 Lorem ipsum dolor sit amet, consectetur adipisicing elit. | 51 Lorem ipsum dolor sit amet, consectetur adipisicing elit. |
52 </textarea> | 52 </textarea> |
53 | 53 |
54 <pre id="results">This test requires DRT.</pre> | 54 <pre id="results">This test requires DRT.</pre> |
55 </body> | 55 </body> |
56 </html> | 56 </html> |
OLD | NEW |