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

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, 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
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) 12 if (window.testRunner)
13 testRunner.dumpAsTextWithPixelResults(); 13 testRunner.dumpAsTextWithPixelResults();
14 14
15 window.onload = function() { 15 window.onload = function() {
16 window.scrollTo(0, 200); 16 window.scrollTo(0, 200);
17 runPaintInvalidationTest(); 17 runPaintInvalidationTest();
18 }; 18 };
19 19
20 window.expectedPaintInvalidationObjects = [
21 "LayoutBlockFlow (positioned) DIV id='t' class='green translated'",
22 ];
23 function paintInvalidationTest() 20 function paintInvalidationTest()
24 { 21 {
25 document.getElementById('t').setAttribute("class", "green translated "); 22 document.getElementById('t').setAttribute("class", "green translated ");
26 } 23 }
27 </script> 24 </script>
28 </head> 25 </head>
29 <body style="height:2000px;"> 26 <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 --> 27 <!-- 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. --> 28 <!-- You should see no red on this page. -->
32 <div style="position: absolute; top: 300px; left: 100px;" class="red"></div> 29 <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> 30 <div id="t" style="position: fixed; top: 125px; left: 125px; width: 50px; he ight: 50px;" class="green"></div>
34 </body> 31 </body>
35 </html> 32 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698