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

Side by Side Diff: third_party/WebKit/LayoutTests/paint/invalidation/spv2/fixed-scale.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-scale.html --> 1 <!-- Based on fast/repaint/fixed-scale.html -->
2 <html> 2 <html>
3 <head> 3 <head>
4 <link rel="stylesheet" href="../../../fast/repaint/resources/default.css"> 4 <link rel="stylesheet" href="../../../fast/repaint/resources/default.css">
5 <style> 5 <style>
6 .translated { 6 .translated {
7 transform: scale(2, 2); 7 transform: scale(2, 2);
8 } 8 }
9 </style> 9 </style>
10 <script src="resources/paint-invalidation-test.js"></script> 10 <script src="resources/paint-invalidation-test.js"></script>
11 <script> 11 <script>
12 if (window.testRunner)
13 testRunner.dumpAsTextWithPixelResults();
14
15 window.onload = function() { 12 window.onload = function() {
16 window.scrollTo(0, 200); 13 window.scrollTo(0, 200);
17 runPaintInvalidationTest(); 14 runPaintInvalidationTest();
18 }; 15 };
19 16
20 window.expectedPaintInvalidationObjects = [
21 "LayoutBlockFlow (positioned) DIV id='t' class='green translated'",
22 ];
23 function paintInvalidationTest() 17 function paintInvalidationTest()
24 { 18 {
25 document.getElementById('t').setAttribute("class", "green translated "); 19 document.getElementById('t').setAttribute("class", "green translated ");
26 } 20 }
27 </script> 21 </script>
28 </head> 22 </head>
29 <body style="height:2000px;"> 23 <body style="height:2000px;">
30 <!-- Repaint test for https://bugs.webkit.org/show_bug.cgi?id=64650: Layer f ixed position logic needs more basic testing --> 24 <!-- Repaint test for https://bugs.webkit.org/show_bug.cgi?id=64650: Layer f ixed position logic needs more basic testing -->
31 <!-- You should see no red on this page. --> 25 <!-- You should see no red on this page. -->
32 <div style="position: absolute; top: 300px; left: 100px;" class="red"></div> 26 <div style="position: absolute; top: 300px; left: 100px;" class="red"></div>
33 <div id="t" style="position: fixed; top: 125px; left: 125px; width: 50px; he ight: 50px;" class="green"></div> 27 <div id="t" style="position: fixed; top: 125px; left: 125px; width: 50px; he ight: 50px;" class="green"></div>
34 </body> 28 </body>
35 </html> 29 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698