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

Side by Side Diff: LayoutTests/compositing/overflow/updating-scrolling-content.html

Issue 14858004: Clean up the way layout tests force elements to opt in/out of composited scrolling. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: . Created 7 years, 7 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 | Annotate | Revision Log
OLDNEW
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) 29 if (window.internals)
30 window.internals.settings.setAcceleratedCompositingForOverflowScrollEn abled(true); 30 window.internals.settings.setAcceleratedCompositingForOverflowScrollEn abledMode(window.internals.settings.AcceleratedCompositingForOverflowScrollEnabl ed);
31 31
32 window.addEventListener('load', function() { 32 window.addEventListener('load', function() {
33 if (!window.testRunner || !window.internals) { 33 if (!window.testRunner || !window.internals) {
34 alert('This test requires testRunner to run!'); 34 alert('This test requires testRunner to run!');
35 return; 35 return;
36 } 36 }
37 testRunner.dumpAsText(false); 37 testRunner.dumpAsText(false);
38 38
39 var scroller = document.getElementById('scroller'); 39 var scroller = document.getElementById('scroller');
40 var indicator = document.getElementById('indicator'); 40 var indicator = document.getElementById('indicator');
(...skipping 17 matching lines...) Expand all
58 </script> 58 </script>
59 </head> 59 </head>
60 <body> 60 <body>
61 <div id="scroller"> 61 <div id="scroller">
62 <div id="indicator"></div> 62 <div id="indicator"></div>
63 <div id="content"></div> 63 <div id="content"></div>
64 </div> 64 </div>
65 <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>
66 </body> 66 </body>
67 </html> 67 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698