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

Side by Side Diff: third_party/WebKit/LayoutTests/paint/invalidation/spv2/background-size-auto-with-gradient-and-height-changes.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/background-size-auto-with-gradient-and-height-changes .html --> 1 <!-- Based on fast/repaint/background-size-auto-with-gradient-and-height-changes .html -->
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="resources/paint-invalidation-test.js"></script> 4 <script src="resources/paint-invalidation-test.js"></script>
5 5
6 <style> 6 <style>
7 #outer { 7 #outer {
8 padding-top: 200px; 8 padding-top: 200px;
9 background: -webkit-gradient( 9 background: -webkit-gradient(
10 linear, 10 linear,
11 left top, 11 left top,
12 left bottom, 12 left bottom,
13 color-stop(0%, rgba(255,255,0,0)), color-stop(100%, rgba(0,0,0,1)) 13 color-stop(0%, rgba(255,255,0,0)), color-stop(100%, rgba(0,0,0,1))
14 ); 14 );
15 background-size: auto; 15 background-size: auto;
16 } 16 }
17 17
18 #inner { 18 #inner {
19 height: 100px; 19 height: 100px;
20 } 20 }
21 </style> 21 </style>
22 22
23 <script> 23 <script>
24 // This test verifies that gradient background gets repainted properly after chi ld box height change. 24 // This test verifies that gradient background gets repainted properly after chi ld box height change.
25 window.expectedPaintInvalidationObjects = [
26 "LayoutBlockFlow DIV id='outer'",
27 "LayoutBlockFlow DIV id='inner'",
28 ];
29 function paintInvalidationTest() { 25 function paintInvalidationTest() {
30 document.getElementById('inner').style.height = '300px'; 26 document.getElementById('inner').style.height = '300px';
31 } 27 }
32 </script> 28 </script>
33 </head> 29 </head>
34 30
35 <body onload='runPaintInvalidationTest();'> 31 <body onload='runPaintInvalidationTest();'>
36 <div id='outer'> 32 <div id='outer'>
37 <div id='inner'> 33 <div id='inner'>
38 </div> 34 </div>
39 </div> 35 </div>
40 </body> 36 </body>
41 </html> 37 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698