OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <meta charset="UTF-8"> | 2 <meta charset="UTF-8"> |
3 <style> | 3 <style> |
4 .parent { | 4 .parent { |
5 shape-image-threshold: 0.4; | 5 shape-image-threshold: 0.4; |
6 } | 6 } |
7 .target { | 7 .target { |
8 shape-image-threshold: 0.6; | 8 shape-image-threshold: 0.6; |
9 } | 9 } |
10 </style> | 10 </style> |
11 <body> | 11 <body> |
12 <script src="resources/interpolation-test.js"></script> | 12 <script src="resources/interpolation-test.js"></script> |
13 <script> | 13 <script> |
14 assertInterpolation({ | 14 assertInterpolation({ |
15 property: 'shape-image-threshold', | 15 property: 'shape-image-threshold', |
16 from: '', | 16 from: neutralKeyframe, |
17 to: '0.8', | 17 to: '0.8', |
18 }, [ | 18 }, [ |
19 {at: -1.5, is: '0.3'}, | 19 {at: -1.5, is: '0.3'}, |
20 {at: -0.5, is: '0.5'}, | 20 {at: -0.5, is: '0.5'}, |
21 {at: 0, is: '0.6'}, | 21 {at: 0, is: '0.6'}, |
22 {at: 0.5, is: '0.7'}, | 22 {at: 0.5, is: '0.7'}, |
23 {at: 1, is: '0.8'}, | 23 {at: 1, is: '0.8'}, |
24 {at: 1.5, is: '0.9'}, | 24 {at: 1.5, is: '0.9'}, |
25 ]); | 25 ]); |
26 | 26 |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 }, [ | 70 }, [ |
71 {at: -1.5, is: '0'}, | 71 {at: -1.5, is: '0'}, |
72 {at: -0.5, is: '0.25'}, | 72 {at: -0.5, is: '0.25'}, |
73 {at: 0, is: '0.5'}, | 73 {at: 0, is: '0.5'}, |
74 {at: 0.5, is: '0.75'}, | 74 {at: 0.5, is: '0.75'}, |
75 {at: 1, is: '1'}, | 75 {at: 1, is: '1'}, |
76 {at: 1.5, is: '1'} | 76 {at: 1.5, is: '1'} |
77 ]); | 77 ]); |
78 </script> | 78 </script> |
79 </body> | 79 </body> |
OLD | NEW |