OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <meta charset="UTF-8"> | 2 <meta charset="UTF-8"> |
3 <style> | 3 <style> |
4 .target { | 4 .target { |
5 width: 50px; | 5 width: 50px; |
6 height: 50px; | 6 height: 50px; |
7 background-color: black; | 7 background-color: black; |
8 display: inline-block; | 8 display: inline-block; |
9 border: 2px solid orange; | 9 border: 2px solid orange; |
10 margin: 18px; | 10 margin: 18px; |
(...skipping 10 matching lines...) Expand all Loading... |
21 from: '0px', | 21 from: '0px', |
22 to: '10px' | 22 to: '10px' |
23 }, [ | 23 }, [ |
24 {at: -0.3, is: '0px'}, // CSS border-width can't be negative. | 24 {at: -0.3, is: '0px'}, // CSS border-width can't be negative. |
25 {at: 0, is: '0px'}, | 25 {at: 0, is: '0px'}, |
26 {at: 0.3, is: '3px'}, | 26 {at: 0.3, is: '3px'}, |
27 {at: 0.6, is: '6px'}, | 27 {at: 0.6, is: '6px'}, |
28 {at: 1, is: '10px'}, | 28 {at: 1, is: '10px'}, |
29 {at: 1.5, is: '15px'} | 29 {at: 1.5, is: '15px'} |
30 ]); | 30 ]); |
| 31 |
| 32 assertInterpolation({ |
| 33 property: 'border-bottom-width', |
| 34 from: 'thick', |
| 35 to: '15px' |
| 36 }, [ |
| 37 {at: -2, is: '0px'}, // CSS border-bottom-width can't be negative. |
| 38 {at: -0.3, is: '2px'}, |
| 39 {at: 0, is: '5px'}, |
| 40 {at: 0.3, is: '8px'}, |
| 41 {at: 0.6, is: '11px'}, |
| 42 {at: 1, is: '15px'}, |
| 43 {at: 1.5, is: '20px'} |
| 44 ]); |
| 45 |
| 46 assertInterpolation({ |
| 47 property: 'border-left-width', |
| 48 from: 'medium', |
| 49 to: '13px' |
| 50 }, [ |
| 51 {at: -2, is: '0px'}, // CSS border-left-width can't be negative. |
| 52 {at: -0.3, is: '0px'}, |
| 53 {at: 0, is: '3px'}, |
| 54 {at: 0.3, is: '6px'}, |
| 55 {at: 0.6, is: '9px'}, |
| 56 {at: 1, is: '13px'}, |
| 57 {at: 1.5, is: '18px'} |
| 58 ]); |
| 59 |
| 60 assertInterpolation({ |
| 61 property: 'border-right-width', |
| 62 from: 'thin', |
| 63 to: '11px' |
| 64 }, [ |
| 65 {at: -2, is: '0px'}, // CSS border-right-width can't be negative. |
| 66 {at: -0.3, is: '0px'}, // CSS border-right-width can't be negative. |
| 67 {at: 0, is: '1px'}, |
| 68 {at: 0.3, is: '4px'}, |
| 69 {at: 0.6, is: '7px'}, |
| 70 {at: 1, is: '11px'}, |
| 71 {at: 1.5, is: '16px'} |
| 72 ]); |
| 73 |
| 74 assertInterpolation({ |
| 75 property: 'border-top-width', |
| 76 from: '15px', |
| 77 to: 'thick' |
| 78 }, [ |
| 79 {at: -2, is: '35px'}, |
| 80 {at: -0.3, is: '18px'}, |
| 81 {at: 0, is: '15px'}, |
| 82 {at: 0.3, is: '12px'}, |
| 83 {at: 0.6, is: '9px'}, |
| 84 {at: 1, is: '5px'}, |
| 85 {at: 1.5, is: '0px'} |
| 86 ]); |
31 </script> | 87 </script> |
32 </body> | 88 </body> |
OLD | NEW |