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: -webkit-gradient( | 8 background: -webkit-gradient( |
9 linear, | 9 linear, |
10 left top, | 10 left top, |
11 left bottom, | 11 left bottom, |
12 color-stop(0%, rgba(255,255,0,0)), color-stop(100%, rgba(0,0,0,1)) | 12 color-stop(0%, rgba(255,255,0,0)), color-stop(100%, rgba(0,0,0,1)) |
13 ); | 13 ); |
14 background-size: auto; | 14 background-size: auto; |
15 } | 15 } |
16 | 16 |
17 #inner { | 17 #inner { |
18 height: 100px; | 18 height: 100px; |
19 } | 19 } |
20 </style> | 20 </style> |
21 | 21 |
22 <script> | 22 <script> |
23 // This test verifies that gradient background gets repainted properly after chi
ld box height change. | 23 // This test verifies that gradient background gets repainted properly after chi
ld box height change. |
24 function repaintTest() { | 24 function repaintTest() { |
25 document.getElementById('inner').style.height = '300px'; | 25 document.getElementById('inner').style.height = '300px'; |
26 } | 26 } |
27 </script> | 27 </script> |
28 </head> | 28 </head> |
29 | 29 |
30 <body onload='runRepaintTest();'> | 30 <body onload='runRepaintAndPixelTest();'> |
31 <div id='outer'> | 31 <div id='outer'> |
32 <div id='inner'> | 32 <div id='inner'> |
33 </div> | 33 </div> |
34 </div> | 34 </div> |
35 </body> | 35 </body> |
36 </html> | 36 </html> |
OLD | NEW |