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

Side by Side Diff: third_party/WebKit/LayoutTests/paint/invalidation/spv2/invalidate-invisible-element.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/invalidate-invisible-element.html --> 1 <!-- Based on fast/repaint/invalidate-invisible-element.html -->
2 <!DOCTYPE html> 2 <!DOCTYPE html>
3 <html> 3 <html>
4 <head> 4 <head>
5 <script src="resources/paint-invalidation-test.js" type="text/javascript"></ script> 5 <script src="resources/paint-invalidation-test.js" type="text/javascript"></ script>
6 <script type="text/javascript"> 6 <script type="text/javascript">
7 window.onload = function() { 7 window.onload = function() {
8 runPaintInvalidationTest(); 8 runPaintInvalidationTest();
9 }; 9 };
10 10
11 window.expectedPaintInvalidationObjects = [
12 "LayoutBlockFlow (positioned) DIV id='target'",
13 ];
14 function paintInvalidationTest() { 11 function paintInvalidationTest() {
15 var target = document.getElementById('target'); 12 var target = document.getElementById('target');
16 target.style.visibility = 'visible'; 13 target.style.visibility = 'visible';
17 getComputedStyle(target).color; 14 getComputedStyle(target).color;
18 target.style.top = '300px'; 15 target.style.top = '300px';
19 } 16 }
20 </script> 17 </script>
21 </head> 18 </head>
22 <body> 19 <body>
23 <div id="target" 20 <div id="target"
24 style="visibility:hidden; 21 style="visibility:hidden;
25 position: absolute; 22 position: absolute;
26 top: 200px; left: 200px; 23 top: 200px; left: 200px;
27 width: 200px; height: 200px; 24 width: 200px; height: 200px;
28 background-color: redl "></div> 25 background-color: redl "></div>
29 </body> 26 </body>
30 </html> 27 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698