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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 {at: -0.3, is: 'polygon(nonzero, -7.5px -7.5px, 17.5px 17.5px, 42.5px 42.5px)'
}, | 63 {at: -0.3, is: 'polygon(nonzero, -7.5px -7.5px, 17.5px 17.5px, 42.5px 42.5px)'
}, |
64 {at: 0, is: 'polygon(nonzero, 0px 0px, 25px 25px, 50px 50px)'}, | 64 {at: 0, is: 'polygon(nonzero, 0px 0px, 25px 25px, 50px 50px)'}, |
65 {at: 0.3, is: 'polygon(nonzero, 7.5px 7.5px, 32.5px 32.5px, 57.5px 57.5px)'}, | 65 {at: 0.3, is: 'polygon(nonzero, 7.5px 7.5px, 32.5px 32.5px, 57.5px 57.5px)'}, |
66 {at: 0.6, is: 'polygon(nonzero, 15px 15px, 40px 40px, 65px 65px)'}, | 66 {at: 0.6, is: 'polygon(nonzero, 15px 15px, 40px 40px, 65px 65px)'}, |
67 {at: 1, is: 'polygon(nonzero, 25px 25px, 50px 50px, 75px 75px)'}, | 67 {at: 1, is: 'polygon(nonzero, 25px 25px, 50px 50px, 75px 75px)'}, |
68 {at: 1.5, is: 'polygon(nonzero, 37.5px 37.5px, 62.5px 62.5px, 87.5px 87.5px)'} | 68 {at: 1.5, is: 'polygon(nonzero, 37.5px 37.5px, 62.5px 62.5px, 87.5px 87.5px)'} |
69 ]); | 69 ]); |
70 | 70 |
71 assertInterpolation({ | 71 assertInterpolation({ |
72 property: 'shape-outside', | 72 property: 'shape-outside', |
| 73 from: 'polygon(evenodd, 0px 0px, 25px 25px, 50px 50px)', |
| 74 to: 'polygon(nonzero, 25px 25px, 50px 50px, 75px 75px)', |
| 75 }, [ |
| 76 {at: -0.3, is: 'polygon(evenodd, 0px 0px, 25px 25px, 50px 50px)'}, |
| 77 {at: 0, is: 'polygon(evenodd, 0px 0px, 25px 25px, 50px 50px)'}, |
| 78 {at: 0.3, is: 'polygon(evenodd, 0px 0px, 25px 25px, 50px 50px)'}, |
| 79 {at: 0.6, is: 'polygon(nonzero, 25px 25px, 50px 50px, 75px 75px)'}, |
| 80 {at: 1, is: 'polygon(nonzero, 25px 25px, 50px 50px, 75px 75px)'}, |
| 81 {at: 1.5, is: 'polygon(nonzero, 25px 25px, 50px 50px, 75px 75px)'}, |
| 82 ]); |
| 83 |
| 84 assertInterpolation({ |
| 85 property: 'shape-outside', |
73 from: 'none', | 86 from: 'none', |
74 to: 'ellipse(100% 100% at 0% 0%)', | 87 to: 'ellipse(100% 100% at 0% 0%)', |
75 }, [ | 88 }, [ |
76 {at: -0.3, is: 'none'}, | 89 {at: -0.3, is: 'none'}, |
77 {at: 0, is: 'none'}, | 90 {at: 0, is: 'none'}, |
78 {at: 0.3, is: 'none'}, | 91 {at: 0.3, is: 'none'}, |
79 {at: 0.6, is: 'ellipse(100% 100% at 0% 0%)'}, | 92 {at: 0.6, is: 'ellipse(100% 100% at 0% 0%)'}, |
80 {at: 1, is: 'ellipse(100% 100% at 0% 0%)'}, | 93 {at: 1, is: 'ellipse(100% 100% at 0% 0%)'}, |
81 {at: 1.5, is: 'ellipse(100% 100% at 0% 0%)'} | 94 {at: 1.5, is: 'ellipse(100% 100% at 0% 0%)'} |
82 ]); | 95 ]); |
83 </script> | 96 </script> |
84 </body> | 97 </body> |
OLD | NEW |