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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/repaint/fixed-under-composited-absolute-scrolled.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 <script src="resources/text-based-repaint.js"></script> 2 <script src="resources/text-based-repaint.js"></script>
3 <script> 3 <script>
4 function repaintTest() { 4 function repaintTest() {
5 document.getElementById('fixed').style.height = '200px'; 5 document.getElementById('fixed').style.height = '200px';
6 } 6 }
7 onload = function() { 7 onload = function() {
8 // Scroll before repaint test to test correct scroll offset of invalidation re ct 8 // Scroll before repaint test to test correct scroll offset of invalidation re ct
9 // for fixed-position element when it needs repaint. 9 // for fixed-position element when it needs repaint.
10 window.scrollTo(0, 400); 10 window.scrollTo(0, 400);
11 runRepaintTest(); 11 runRepaintAndPixelTest();
12 }; 12 };
13 </script> 13 </script>
14 <style> 14 <style>
15 #indicator { 15 #indicator {
16 position: absolute; 16 position: absolute;
17 height: 200px; 17 height: 200px;
18 width: 100px; 18 width: 100px;
19 top: 400px; 19 top: 400px;
20 left: 0; 20 left: 0;
21 background-color: red; 21 background-color: red;
(...skipping 16 matching lines...) Expand all
38 background-color: green; 38 background-color: green;
39 } 39 }
40 </style> 40 </style>
41 Tests paint invalidation of fixed element under a composited absolute element on resize after scrolled. 41 Tests paint invalidation of fixed element under a composited absolute element on resize after scrolled.
42 Passes if there is a 100x200 green rectangle and no red. 42 Passes if there is a 100x200 green rectangle and no red.
43 <div id="indicator"></div> 43 <div id="indicator"></div>
44 <div id="absolute"> 44 <div id="absolute">
45 <div id="fixed"> 45 <div id="fixed">
46 </div> 46 </div>
47 </div> 47 </div>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698