| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <body> | 2 <body> |
| 3 <style> | 3 <style> |
| 4 .target { | 4 .target { |
| 5 width: 100px; | 5 width: 100px; |
| 6 height: 100px; | 6 height: 100px; |
| 7 } | 7 } |
| 8 </style> | 8 </style> |
| 9 <script src="../interpolation/resources/interpolation-test.js"></script> | 9 <script src="../interpolation/resources/interpolation-test.js"></script> |
| 10 <script> | 10 <script> |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 replaceFrom: '50% 100px', | 42 replaceFrom: '50% 100px', |
| 43 addTo: '200px 50% 100px', | 43 addTo: '200px 50% 100px', |
| 44 }, [ | 44 }, [ |
| 45 {at: -1, is: '-200px -50px -400px'}, | 45 {at: -1, is: '-200px -50px -400px'}, |
| 46 {at: 0, is: '50px 100px'}, | 46 {at: 0, is: '50px 100px'}, |
| 47 {at: 0.25, is: '112.5px 137.5px 100px'}, | 47 {at: 0.25, is: '112.5px 137.5px 100px'}, |
| 48 {at: 0.75, is: '237.5px 212.5px 300px'}, | 48 {at: 0.75, is: '237.5px 212.5px 300px'}, |
| 49 {at: 1, is: '300px 250px 400px'}, | 49 {at: 1, is: '300px 250px 400px'}, |
| 50 {at: 2, is: '550px 400px 800px'}, | 50 {at: 2, is: '550px 400px 800px'}, |
| 51 ]); | 51 ]); |
| 52 |
| 53 assertComposition({ |
| 54 property: 'translate', |
| 55 underlying: 'none', |
| 56 replaceFrom: 'none', |
| 57 addTo: '100px', |
| 58 }, [ |
| 59 {at: -1, is: '-100px'}, |
| 60 {at: 0, is: 'none'}, |
| 61 {at: 0.25, is: '25px'}, |
| 62 {at: 0.75, is: '75px'}, |
| 63 {at: 1, is: '100px'}, |
| 64 {at: 2, is: '200px'}, |
| 65 ]); |
| 66 |
| 67 assertComposition({ |
| 68 property: 'translate', |
| 69 underlying: 'none', |
| 70 addFrom: 'none', |
| 71 addTo: '100px', |
| 72 }, [ |
| 73 {at: -1, is: '-100px'}, |
| 74 {at: 0, is: 'none'}, |
| 75 {at: 0.25, is: '25px'}, |
| 76 {at: 0.75, is: '75px'}, |
| 77 {at: 1, is: '100px'}, |
| 78 {at: 2, is: '200px'}, |
| 79 ]); |
| 80 |
| 81 assertComposition({ |
| 82 property: 'translate', |
| 83 underlying: 'none', |
| 84 replaceFrom: '0px 40px 60px', |
| 85 replaceTo: 'none', |
| 86 }, [ |
| 87 {at: -1, is: '0px 80px 120px'}, |
| 88 {at: 0, is: '0px 40px 60px'}, |
| 89 {at: 0.25, is: '0px 30px 45px'}, |
| 90 {at: 0.75, is: '0px 10px 15px'}, |
| 91 {at: 1, is: 'none'}, |
| 92 {at: 2, is: '0px -40px -60px'}, |
| 93 ]); |
| 94 |
| 95 assertComposition({ |
| 96 property: 'translate', |
| 97 underlying: 'none', |
| 98 replaceFrom: '0px 40px 60px', |
| 99 addTo: 'none', |
| 100 }, [ |
| 101 {at: -1, is: '0px 80px 120px'}, |
| 102 {at: 0, is: '0px 40px 60px'}, |
| 103 {at: 0.25, is: '0px 30px 45px'}, |
| 104 {at: 0.75, is: '0px 10px 15px'}, |
| 105 {at: 1, is: 'none'}, |
| 106 {at: 2, is: '0px -40px -60px'}, |
| 107 ]); |
| 108 |
| 109 assertComposition({ |
| 110 property: 'translate', |
| 111 underlying: '80px 20px', |
| 112 addFrom: 'none', |
| 113 replaceTo: '0px 40px 60px', |
| 114 }, [ |
| 115 {at: -1, is: '160px 0px -60px'}, |
| 116 {at: 0, is: '80px 20px'}, |
| 117 {at: 0.25, is: '60px 25px 15px'}, |
| 118 {at: 0.5, is: '40px 30px 30px'}, |
| 119 {at: 0.75, is: '20px 35px 45px'}, |
| 120 {at: 1, is: '0px 40px 60px'}, |
| 121 {at: 2, is: '-80px 60px 120px'}, |
| 122 ]); |
| 123 |
| 124 assertComposition({ |
| 125 property: 'translate', |
| 126 underlying: '80px 20px', |
| 127 addFrom: '0px 40px 60px', |
| 128 replaceTo: 'none', |
| 129 }, [ |
| 130 {at: -1, is: '160px 120px 120px'}, |
| 131 {at: 0, is: '80px 60px 60px'}, |
| 132 {at: 0.25, is: '60px 45px 45px'}, |
| 133 {at: 0.5, is: '40px 30px 30px'}, |
| 134 {at: 0.75, is: '20px 15px 15px'}, |
| 135 {at: 1, is: 'none'}, |
| 136 {at: 2, is: '-80px -60px -60px'}, |
| 137 ]); |
| 52 </script> | 138 </script> |
| 53 </body> | 139 </body> |
| OLD | NEW |