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

Side by Side Diff: LayoutTests/paint/invalidation/spv2/scroll-fixed-squahed-layer.html

Issue 1302183007: Convert some text-based-repaint tests for spv2 (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 3 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 | Annotate | Revision Log
OLDNEW
1 <!-- Based on compositing/repaint/scroll-fixed-squahed-layer.html -->
1 <!DOCTYPE html> 2 <!DOCTYPE html>
2 <html> 3 <html>
3 <head> 4 <head>
4 <script src="../../fast/repaint/resources/text-based-repaint.js"></script> 5 <script src="resources/paint-invalidation-test.js"></script>
5 <style> 6 <style>
6 .main { 7 .main {
7 position: fixed; 8 position: fixed;
8 top: 100px; 9 top: 100px;
9 left: 100px; 10 left: 100px;
10 width: 200px; 11 width: 200px;
11 height: 200px; 12 height: 200px;
12 background-color: lightblue; 13 background-color: lightblue;
13 will-change: transform; 14 will-change: transform;
14 } 15 }
15 16
16 .squahed { 17 .squahed {
17 position: fixed; 18 position: fixed;
18 top: 150px; 19 top: 150px;
19 left: 100px; 20 left: 100px;
20 width: 200px; 21 width: 200px;
21 height: 200px; 22 height: 200px;
22 background-color: lightgreen; 23 background-color: lightgreen;
23 } 24 }
24 </style> 25 </style>
25 <script> 26 <script>
26 if (window.internals) 27 if (window.internals)
27 internals.settings.setPreferCompositingToLCDTextEnabled(false); 28 internals.settings.setPreferCompositingToLCDTextEnabled(false);
28 29
29 function repaintTest() { 30 window.expectedPaintInvalidationObjects = [
31 ];
32 function paintInvalidationTest() {
30 window.scrollTo(0, 100); 33 window.scrollTo(0, 100);
31 } 34 }
32 </script> 35 </script>
33 </head> 36 </head>
34 <body style="height:2000px" onload="runRepaintTest()"> 37 <body style="height:2000px" onload="runPaintInvalidationTest()">
35 <div class="main"></div> 38 <div class="main"></div>
36 <div class="squahed"></div> 39 <div class="squahed"></div>
37 </body> 40 </body>
38 </html> 41 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698