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

Side by Side Diff: LayoutTests/paint/invalidation/spv2/squash-partial-repaint-inside-squashed-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/squashing/squash-partial-repaint-inside-squashed-layer .html -->
1 <!DOCTYPE html> 2 <!DOCTYPE html>
2 <head> 3 <head>
3 <style> 4 <style>
4 .composited { 5 .composited {
5 transform: translatez(0); 6 transform: translatez(0);
6 } 7 }
7 8
8 .box { 9 .box {
9 width: 100px; 10 width: 100px;
10 height: 100px; 11 height: 100px;
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 left: 340px; 44 left: 340px;
44 background-color: cyan; 45 background-color: cyan;
45 } 46 }
46 47
47 div:hover { 48 div:hover {
48 background-color: green; 49 background-color: green;
49 transform:translatez(0); 50 transform:translatez(0);
50 } 51 }
51 52
52 </style> 53 </style>
53 <script src="../../fast/repaint/resources/text-based-repaint.js"></script> 54 <script src="resources/paint-invalidation-test.js"></script>
54 <script> 55 <script>
55 function repaintTest() 56 window.expectedPaintInvalidationObjects = [
57 "LayoutImage (positioned) IMG id='repaintdiv' class='repaintdiv'",
58 ];
59 function paintInvalidationTest()
56 { 60 {
57 document.getElementById('repaintdiv').style.background = 'salmon'; 61 document.getElementById('repaintdiv').style.background = 'salmon';
58 } 62 }
59 runRepaintTest(); 63 runPaintInvalidationTest();
60 </script> 64 </script>
61 </head> 65 </head>
62 <body> 66 <body>
63 <div class="composited box behind"></div> 67 <div class="composited box behind"></div>
64 <div class="box middle"></div> 68 <div class="box middle"></div>
65 <img id="repaintdiv" class="repaintdiv"></img> 69 <img id="repaintdiv" class="repaintdiv"></img>
66 <div class="box top"></div> 70 <div class="box top"></div>
67 </body> 71 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698