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