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

Side by Side Diff: third_party/WebKit/LayoutTests/paint/invalidation/spv2/fixed-under-composited-absolute-scrolled.html

Issue 1366763002: Text expectations of paint/invalidation/spv2 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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 <!-- Based on fast/repaint/fixed-under-composited-absolute-scrolled.html --> 1 <!-- Based on fast/repaint/fixed-under-composited-absolute-scrolled.html -->
2 <!DOCTYPE html> 2 <!DOCTYPE html>
3 <script src="resources/paint-invalidation-test.js"></script> 3 <script src="resources/paint-invalidation-test.js"></script>
4 <script> 4 <script>
5 window.expectedPaintInvalidationObjects = [
6 "LayoutBlockFlow (positioned) DIV id='fixed'",
7 ];
8 function paintInvalidationTest() { 5 function paintInvalidationTest() {
9 document.getElementById('fixed').style.height = '200px'; 6 document.getElementById('fixed').style.height = '200px';
10 } 7 }
11 onload = function() { 8 onload = function() {
12 // Scroll before repaint test to test correct scroll offset of invalidation re ct 9 // Scroll before repaint test to test correct scroll offset of invalidation re ct
13 // for fixed-position element when it needs repaint. 10 // for fixed-position element when it needs repaint.
14 window.scrollTo(0, 400); 11 window.scrollTo(0, 400);
15 runPaintInvalidationTest(); 12 runPaintInvalidationTest();
16 }; 13 };
17 </script> 14 </script>
(...skipping 24 matching lines...) Expand all
42 background-color: green; 39 background-color: green;
43 } 40 }
44 </style> 41 </style>
45 Tests paint invalidation of fixed element under a composited absolute element on resize after scrolled. 42 Tests paint invalidation of fixed element under a composited absolute element on resize after scrolled.
46 Passes if there is a 100x200 green rectangle and no red. 43 Passes if there is a 100x200 green rectangle and no red.
47 <div id="indicator"></div> 44 <div id="indicator"></div>
48 <div id="absolute"> 45 <div id="absolute">
49 <div id="fixed"> 46 <div id="fixed">
50 </div> 47 </div>
51 </div> 48 </div>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698