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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/repaint/overflow-move-after-scroll.html

Issue 1992303002: Test pixel results for repaint tests changing scroll (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 <html> 2 <html>
3 <head> 3 <head>
4 <script src="resources/text-based-repaint.js"></script> 4 <script src="resources/text-based-repaint.js"></script>
5 <style> 5 <style>
6 6
7 #scroller { 7 #scroller {
8 position: absolute; 8 position: absolute;
9 left: 10px; 9 left: 10px;
10 top: 60px; 10 top: 60px;
11 width: 700px; 11 width: 700px;
12 height: 400px; 12 height: 400px;
13 overflow: scroll; 13 overflow: scroll;
14 will-change: transform; 14 will-change: transform;
15 } 15 }
16 #block { 16 #block {
17 background-color: #cef; 17 background-color: #cef;
18 position: absolute; 18 position: absolute;
19 left: 300px; 19 left: 300px;
20 top: 200px; 20 top: 200px;
21 width: 120px; 21 width: 120px;
22 height: 50px; 22 height: 50px;
23 text-align: center; 23 text-align: center;
24 } 24 }
25 25
26 </style> 26 </style>
27 </head> 27 </head>
28 <body onload="runRepaintTest()"> 28 <body onload="runRepaintAndPixelTest()">
29 29
30 This tests that a scroll updates an element's previous paint invalidation rect 30 This tests that a scroll updates an element's previous paint invalidation rect
31 even if the element's position relative to the parent blink::Layer is unchanged. 31 even if the element's position relative to the parent blink::Layer is unchanged.
32 32
33 <div id="scroller" class="scroller"> 33 <div id="scroller" class="scroller">
34 <div style="height: 600px"></div> 34 <div style="height: 600px"></div>
35 <div style="position: absolute; top: 0"> 35 <div style="position: absolute; top: 0">
36 <div id="block"></div> 36 <div id="block"></div>
37 </div> 37 </div>
38 </div> 38 </div>
39 <script> 39 <script>
40 40
41 function repaintTest() 41 function repaintTest()
42 { 42 {
43 document.querySelector("#scroller").scrollTop = 100; 43 document.querySelector("#scroller").scrollTop = 100;
44 document.querySelector("#block").style.left = '50px'; 44 document.querySelector("#block").style.left = '50px';
45 } 45 }
46 46
47 </script> 47 </script>
48 </body> 48 </body>
49 </html> 49 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698