OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <meta charset="UTF-8"> | 2 <meta charset="UTF-8"> |
3 <body> | 3 <body> |
4 <script src="resources/interpolation-test.js"></script> | 4 <script src="resources/interpolation-test.js"></script> |
5 <script> | 5 <script> |
6 assertInterpolation({ | 6 assertInterpolation({ |
7 property: 'shape-outside', | 7 property: 'shape-outside', |
8 from: 'rectangle(0px, 0px, 100px, 100px)', | 8 from: 'rectangle(0px, 0px, 100px, 100px)', |
9 to: 'rectangle(25px, 25px, 50px, 50px)' | 9 to: 'rectangle(25px, 25px, 50px, 50px)' |
10 }, [ | 10 }, [ |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 from: 'none', | 86 from: 'none', |
87 to: 'ellipse(100% 100% at 0% 0%)', | 87 to: 'ellipse(100% 100% at 0% 0%)', |
88 }, [ | 88 }, [ |
89 {at: -0.3, is: 'none'}, | 89 {at: -0.3, is: 'none'}, |
90 {at: 0, is: 'none'}, | 90 {at: 0, is: 'none'}, |
91 {at: 0.3, is: 'none'}, | 91 {at: 0.3, is: 'none'}, |
92 {at: 0.6, is: 'ellipse(100% 100% at 0% 0%)'}, | 92 {at: 0.6, is: 'ellipse(100% 100% at 0% 0%)'}, |
93 {at: 1, is: 'ellipse(100% 100% at 0% 0%)'}, | 93 {at: 1, is: 'ellipse(100% 100% at 0% 0%)'}, |
94 {at: 1.5, is: 'ellipse(100% 100% at 0% 0%)'} | 94 {at: 1.5, is: 'ellipse(100% 100% at 0% 0%)'} |
95 ]); | 95 ]); |
| 96 |
| 97 // TODO: add intermediate keyframe tests when CSS shapes position computed value
s are cleaned up |
| 98 assertInterpolation({ |
| 99 property: 'shape-outside', |
| 100 from: 'circle(20% at right 10% bottom 20px)', |
| 101 to: 'circle(30% at right 20% bottom 30px)', |
| 102 }, [ |
| 103 {at: 0, is: 'circle(20% at right 10% bottom 20px)'}, |
| 104 {at: 0.5, is: 'circle(25% at right 15% bottom 25px)'}, |
| 105 {at: 1, is: 'circle(30% at right 20% bottom 30px)'}, |
| 106 ]); |
96 </script> | 107 </script> |
97 </body> | 108 </body> |
OLD | NEW |