OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <script src="resources/text-based-repaint.js"></script> | 3 <script src="resources/text-based-repaint.js"></script> |
4 | 4 |
5 <style> | 5 <style> |
6 #outer { | 6 #outer { |
7 padding-top: 200px; | 7 padding-top: 200px; |
8 /* background-size is implicitly set to initial via the background shorthand
. */ | 8 /* background-size is implicitly set to initial via the background shorthand
. */ |
9 » background:-webkit-gradient( | 9 background: linear-gradient(rgba(255,255,0,0), rgba(0,0,0,1)); |
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 ); | 10 ); |
15 } | 11 } |
16 | 12 |
17 #inner { | 13 #inner { |
18 height: 100px; | 14 height: 100px; |
19 } | 15 } |
20 </style> | 16 </style> |
21 | 17 |
22 <script> | 18 <script> |
23 //This test verifies that gradient background gets repainted properly after chil
d box height change. | 19 //This test verifies that gradient background gets repainted properly after chil
d box height change. |
24 | 20 |
25 function repaintTest() { | 21 function repaintTest() { |
26 document.getElementById('inner').style.height = 300 + 'px'; | 22 document.getElementById('inner').style.height = 300 + 'px'; |
27 } | 23 } |
28 </script> | 24 </script> |
29 </head> | 25 </head> |
30 <body onload='runRepaintAndPixelTest();'> | 26 <body onload='runRepaintAndPixelTest();'> |
31 <div id='outer'> | 27 <div id='outer'> |
32 <div id='inner'> | 28 <div id='inner'> |
33 </div> | 29 </div> |
34 </div> | 30 </div> |
35 </body> | 31 </body> |
36 </html> | 32 </html> |
OLD | NEW |