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

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

Issue 1972273002: Let repaint tests test pixels by default (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
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 src="../../fast/repaint/resources/text-based-repaint.js"></script> 28 <script src="../../fast/repaint/resources/repaint.js"></script>
29 <script type="text/javascript"> 29 <script type="text/javascript">
30 if (window.internals) 30 if (window.internals)
31 window.internals.settings.setPreferCompositingToLCDTextEnabled(true); 31 window.internals.settings.setPreferCompositingToLCDTextEnabled(true);
32 32
33 window.addEventListener('load', function() { 33 window.addEventListener('load', function() {
34 var scroller = document.getElementById('scroller'); 34 var scroller = document.getElementById('scroller');
35 var indicator = document.getElementById('indicator'); 35 var indicator = document.getElementById('indicator');
36 36
37 // Make sure the scrolling content is painted before we start. 37 // Make sure the scrolling content is painted before we start.
38 scroller.offsetTop; 38 scroller.offsetTop;
(...skipping 16 matching lines...) Expand all
55 } 55 }
56 </script> 56 </script>
57 </head> 57 </head>
58 <body> 58 <body>
59 <div id="scroller"> 59 <div id="scroller">
60 <div id="indicator"></div> 60 <div id="indicator"></div>
61 <div id="content"></div> 61 <div id="content"></div>
62 </div> 62 </div>
63 </body> 63 </body>
64 </html> 64 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698