Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(46)

Side by Side Diff: LayoutTests/compositing/overflow/textarea-scroll-touch.html

Issue 12254005: Merge 141769 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1364/
Patch Set: Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698