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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/repaint/fixed-table-overflow-zindex.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 table { top: 0px; left: 0px; border-spacing: 0px; position: absolute; } 5 table { top: 0px; left: 0px; border-spacing: 0px; position: absolute; }
6 td { background: green; padding: 0px; border-style: none; border: 0px; } 6 td { background: green; padding: 0px; border-style: none; border: 0px; }
7 td.fixed { position: fixed; left: 100px; top: 0px; z-index: 3; } 7 td.fixed { position: fixed; left: 100px; top: 0px; z-index: 3; }
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.waitUntilDone(); 12 testRunner.waitUntilDone();
13 testRunner.dumpAsTextWithPixelResults(); 13 testRunner.dumpAsTextWithPixelResults();
14 } 14 }
15 15
16 window.onload = function() { 16 window.onload = function() {
17 window.scrollTo(0, 100); 17 window.scrollTo(0, 100);
18 runRepaintTest(); 18 runRepaintAndPixelTest();
19 }; 19 };
20 20
21 function repaintTest() 21 function repaintTest()
22 { 22 {
23 document.getElementById('moveMe').className = "fixed"; 23 document.getElementById('moveMe').className = "fixed";
24 } 24 }
25 </script> 25 </script>
26 </head> 26 </head>
27 <body style="height:2000px;"> 27 <body style="height:2000px;">
28 <!-- Repaint test for https://bugs.webkit.org/show_bug.cgi?id=64650: Layer f ixed position logic needs more basic testing --> 28 <!-- Repaint test for https://bugs.webkit.org/show_bug.cgi?id=64650: Layer f ixed position logic needs more basic testing -->
29 <!-- You should see no red on this page. --> 29 <!-- You should see no red on this page. -->
30 <table> 30 <table>
31 <tr><td></td><td></td></tr> 31 <tr><td></td><td></td></tr>
32 <tr><td id="moveMe"></td><td class="red"><div class="green" style="posit ion: relative; left: -100px; top: 0px;"></div></td></tr> 32 <tr><td id="moveMe"></td><td class="red"><div class="green" style="posit ion: relative; left: -100px; top: 0px;"></div></td></tr>
33 </body> 33 </body>
34 </html> 34 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698