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

Side by Side Diff: third_party/WebKit/LayoutTests/paint/invalidation/spv2/full-viewport-repaint-for-background-attachment-fixed.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/full-viewport-repaint-for-background-attachment-fixed .html --> 1 <!-- Based on fast/repaint/full-viewport-repaint-for-background-attachment-fixed .html -->
2 <!DOCTYPE html> 2 <!DOCTYPE html>
3 <style> 3 <style>
4 body { 4 body {
5 background-image: linear-gradient(red, blue); 5 background-image: linear-gradient(red, blue);
6 background-attachment: fixed; 6 background-attachment: fixed;
7 margin: 0; 7 margin: 0;
8 } 8 }
9 </style> 9 </style>
10 <script src="resources/paint-invalidation-test.js" type="text/javascript"></scri pt> 10 <script src="resources/paint-invalidation-test.js" type="text/javascript"></scri pt>
11 <script> 11 <script>
12 if (window.testRunner) 12 if (window.testRunner)
13 window.internals.settings.setPreferCompositingToLCDTextEnabled(false); 13 window.internals.settings.setPreferCompositingToLCDTextEnabled(false);
14 14
15 window.expectedPaintInvalidationObjects = [
16 "##ALL##",
17 "LayoutView #document",
18 ];
19 function paintInvalidationTest() { 15 function paintInvalidationTest() {
20 window.scrollTo(0, 1000); 16 window.scrollTo(0, 1000);
21 } 17 }
22 18
23 window.onload = function() { 19 window.onload = function() {
24 runPaintInvalidationTest(); 20 runPaintInvalidationTest();
25 }; 21 };
26 </script> 22 </script>
27 <div style="height: 5000px"> 23 <div style="height: 5000px">
28 Tests that scrolling a frame with background-attachment: fixed invalidates the e ntire viewport. 24 Tests that scrolling a frame with background-attachment: fixed invalidates the e ntire viewport.
29 </div> 25 </div>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698