OLD | NEW |
1 <!-- Based on fast/repaint/background-shorthand-with-gradient-and-height-changes
.html --> | 1 <!-- Based on fast/repaint/background-shorthand-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-size is implicitly set to initial via the background shorthand
. */ | 9 /* background-size is implicitly set to initial via the background shorthand
. */ |
10 background:-webkit-gradient( | 10 background:-webkit-gradient( |
11 linear, | 11 linear, |
12 left top, | 12 left top, |
13 left bottom, | 13 left bottom, |
14 color-stop(0%, rgba(255,255,0,0)), color-stop(100%, rgba(0,0,0,1)) | 14 color-stop(0%, rgba(255,255,0,0)), color-stop(100%, rgba(0,0,0,1)) |
15 ); | 15 ); |
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 chil
d box height change. | 24 //This test verifies that gradient background gets repainted properly after chil
d box height change. |
25 | 25 |
26 window.expectedPaintInvalidationObjects = [ | |
27 "LayoutBlockFlow DIV id='outer'", | |
28 "LayoutBlockFlow DIV id='inner'", | |
29 ]; | |
30 function paintInvalidationTest() { | 26 function paintInvalidationTest() { |
31 document.getElementById('inner').style.height = 300 + 'px'; | 27 document.getElementById('inner').style.height = 300 + 'px'; |
32 } | 28 } |
33 </script> | 29 </script> |
34 </head> | 30 </head> |
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> |
OLD | NEW |