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 /* TODO: add inset test once blend() works for it */ |
7 property: 'shape-outside', | |
8 from: 'rectangle(0px, 0px, 100px, 100px)', | |
9 to: 'rectangle(25px, 25px, 50px, 50px)' | |
10 }, [ | |
11 {at: -0.3, is: 'rectangle(-7.5px, -7.5px, 115px, 115px)'}, | |
12 {at: 0, is: 'rectangle(0px, 0px, 100px, 100px)'}, | |
13 {at: 0.3, is: 'rectangle(7.5px, 7.5px, 85px, 85px)'}, | |
14 {at: 0.6, is: 'rectangle(15px, 15px, 70px, 70px)'}, | |
15 {at: 1, is: 'rectangle(25px, 25px, 50px, 50px)'}, | |
16 {at: 1.5, is: 'rectangle(37.5px, 37.5px, 25px, 25px)'} | |
17 ]); | |
18 | 7 |
19 assertInterpolation({ | 8 assertInterpolation({ |
20 property: 'shape-outside', | 9 property: 'shape-outside', |
21 from: 'inset-rectangle(25px, 25px, 100px, 100px)', | |
22 to: 'inset-rectangle(50px, 50px, 50px, 50px)' | |
23 }, [ | |
24 {at: -0.5, is: 'inset-rectangle(12.5px, 12.5px, 125px, 125px)'}, | |
25 {at: 0, is: 'inset-rectangle(25px, 25px, 100px, 100px)'}, | |
26 {at: 0.3, is: 'inset-rectangle(32.5px, 32.5px, 85px, 85px)'}, | |
27 {at: 0.6, is: 'inset-rectangle(40px, 40px, 70px, 70px)'}, | |
28 {at: 1, is: 'inset-rectangle(50px, 50px, 50px, 50px)'}, | |
29 {at: 1.5, is: 'inset-rectangle(62.5px, 62.5px, 25px, 25px)'} | |
30 ]); | |
31 | |
32 assertInterpolation({ | |
33 property: 'shape-outside', | |
34 from: 'circle(100% at 0% 0%)', | 10 from: 'circle(100% at 0% 0%)', |
35 to: 'circle(50% at 25% 25%)', | 11 to: 'circle(50% at 25% 25%)', |
36 }, [ | 12 }, [ |
37 {at: -0.3, is: 'circle(115% at -7.5% -7.5%)'}, | 13 {at: -0.3, is: 'circle(115% at -7.5% -7.5%)'}, |
38 {at: 0, is: 'circle(100% at 0% 0%)'}, | 14 {at: 0, is: 'circle(100% at 0% 0%)'}, |
39 {at: 0.3, is: 'circle(85% at 7.5% 7.5%)'}, | 15 {at: 0.3, is: 'circle(85% at 7.5% 7.5%)'}, |
40 {at: 0.6, is: 'circle(70% at 15% 15%)'}, | 16 {at: 0.6, is: 'circle(70% at 15% 15%)'}, |
41 {at: 1, is: 'circle(50% at 25% 25%)'}, | 17 {at: 1, is: 'circle(50% at 25% 25%)'}, |
42 {at: 1.5, is: 'circle(25% at 37.5% 37.5%)'} | 18 {at: 1.5, is: 'circle(25% at 37.5% 37.5%)'} |
43 ]); | 19 ]); |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 property: 'shape-outside', | 75 property: 'shape-outside', |
100 from: 'circle(20% at right 10% bottom 20px)', | 76 from: 'circle(20% at right 10% bottom 20px)', |
101 to: 'circle(30% at right 20% bottom 30px)', | 77 to: 'circle(30% at right 20% bottom 30px)', |
102 }, [ | 78 }, [ |
103 {at: 0, is: 'circle(20% at right 10% bottom 20px)'}, | 79 {at: 0, is: 'circle(20% at right 10% bottom 20px)'}, |
104 {at: 0.5, is: 'circle(25% at left 85% bottom 25px)'}, | 80 {at: 0.5, is: 'circle(25% at left 85% bottom 25px)'}, |
105 {at: 1, is: 'circle(30% at right 20% bottom 30px)'}, | 81 {at: 1, is: 'circle(30% at right 20% bottom 30px)'}, |
106 ]); | 82 ]); |
107 </script> | 83 </script> |
108 </body> | 84 </body> |
OLD | NEW |