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

Side by Side Diff: third_party/WebKit/LayoutTests/paint/invalidation/spv2/layer-hide-when-needs-layout.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/layer-hide-when-needs-layout.html --> 1 <!-- Based on fast/repaint/layer-hide-when-needs-layout.html -->
2 <html> 2 <html>
3 <head> 3 <head>
4 <title>Test for http://bugs.webkit.org/show_bug.cgi?id=13544</title> 4 <title>Test for http://bugs.webkit.org/show_bug.cgi?id=13544</title>
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.expectedPaintInvalidationObjects = [
8 "LayoutBlockFlow (positioned) DIV id='target'",
9 ];
10 function paintInvalidationTest() 7 function paintInvalidationTest()
11 { 8 {
12 var div = document.getElementById("target"); 9 var div = document.getElementById("target");
13 div.style.visibility = 'hidden'; 10 div.style.visibility = 'hidden';
14 // Now make this a layout hint to avoid the repaint done in setStyle (). 11 // Now make this a layout hint to avoid the repaint done in setStyle ().
15 div.style.width = '50px'; 12 div.style.width = '50px';
16 } 13 }
17 </script> 14 </script>
18 </head> 15 </head>
19 <body onload="runPaintInvalidationTest()"> 16 <body onload="runPaintInvalidationTest()">
20 <div style="position: relative;"> 17 <div style="position: relative;">
21 <div style="background: green; width: 100px; height: 100px;"> 18 <div style="background: green; width: 100px; height: 100px;">
22 </div> 19 </div>
23 <div id="target" style="position: absolute; top: 0; width: 100px; height : 100px; background: red;"> 20 <div id="target" style="position: absolute; top: 0; width: 100px; height : 100px; background: red;">
24 </div> 21 </div>
25 </div> 22 </div>
26 </body> 23 </body>
27 </html> 24 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698