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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/repaint/fixed-scale.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 <html> 1 <html>
2 <head> 2 <head>
3 <link rel="stylesheet" href="resources/default.css"> 3 <link rel="stylesheet" href="resources/default.css">
4 <style> 4 <style>
5 .translated { 5 .translated {
6 transform: scale(2, 2); 6 transform: scale(2, 2);
7 } 7 }
8 </style> 8 </style>
9 <script src="resources/text-based-repaint.js"></script> 9 <script src="resources/text-based-repaint.js"></script>
10 <script> 10 <script>
11 if (window.testRunner) 11 if (window.testRunner)
12 testRunner.dumpAsTextWithPixelResults(); 12 testRunner.dumpAsTextWithPixelResults();
13 13
14 window.onload = function() { 14 window.onload = function() {
15 window.scrollTo(0, 200); 15 window.scrollTo(0, 200);
16 runRepaintTest(); 16 runRepaintAndPixelTest();
17 }; 17 };
18 18
19 function repaintTest() 19 function repaintTest()
20 { 20 {
21 document.getElementById('t').setAttribute("class", "green translated "); 21 document.getElementById('t').setAttribute("class", "green translated ");
22 } 22 }
23 </script> 23 </script>
24 </head> 24 </head>
25 <body style="height:2000px;"> 25 <body style="height:2000px;">
26 <!-- Repaint test for https://bugs.webkit.org/show_bug.cgi?id=64650: Layer f ixed position logic needs more basic testing --> 26 <!-- Repaint test for https://bugs.webkit.org/show_bug.cgi?id=64650: Layer f ixed position logic needs more basic testing -->
27 <!-- You should see no red on this page. --> 27 <!-- You should see no red on this page. -->
28 <div style="position: absolute; top: 300px; left: 100px;" class="red"></div> 28 <div style="position: absolute; top: 300px; left: 100px;" class="red"></div>
29 <div id="t" style="position: fixed; top: 125px; left: 125px; width: 50px; he ight: 50px;" class="green"></div> 29 <div id="t" style="position: fixed; top: 125px; left: 125px; width: 50px; he ight: 50px;" class="green"></div>
30 </body> 30 </body>
31 </html> 31 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698