| 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 motion-rotation: 30deg; | 5 motion-rotation: 30deg; |
| 6 } | 6 } |
| 7 .target { | 7 .target { |
| 8 width: 80px; | 8 width: 80px; |
| 9 height: 80px; | 9 height: 80px; |
| 10 display: inline-block; | 10 display: inline-block; |
| 11 background-color: black; | 11 background-color: black; |
| 12 margin-right: 5px; | 12 margin-right: 5px; |
| 13 motion-rotation: 10deg; | 13 motion-rotation: 10deg; |
| 14 } | 14 } |
| 15 .expected { | 15 .expected { |
| 16 background-color: green; | 16 background-color: green; |
| 17 margin-right: 15px; | 17 margin-right: 15px; |
| 18 } | 18 } |
| 19 </style> | 19 </style> |
| 20 <body> | 20 <body> |
| 21 <script src="resources/interpolation-test.js"></script> | 21 <script src="resources/interpolation-test.js"></script> |
| 22 <script> | 22 <script> |
| 23 assertInterpolation({ | 23 assertInterpolation({ |
| 24 property: 'motion-rotation', | 24 property: 'motion-rotation', |
| 25 from: '', | 25 from: neutralKeyframe, |
| 26 to: '20deg', | 26 to: '20deg', |
| 27 }, [ | 27 }, [ |
| 28 {at: -0.3, is: '7deg'}, | 28 {at: -0.3, is: '7deg'}, |
| 29 {at: 0, is: '10deg'}, | 29 {at: 0, is: '10deg'}, |
| 30 {at: 0.3, is: '13deg'}, | 30 {at: 0.3, is: '13deg'}, |
| 31 {at: 0.6, is: '16deg'}, | 31 {at: 0.6, is: '16deg'}, |
| 32 {at: 1, is: '20deg'}, | 32 {at: 1, is: '20deg'}, |
| 33 {at: 1.5, is: '25deg'}, | 33 {at: 1.5, is: '25deg'}, |
| 34 ]); | 34 ]); |
| 35 | 35 |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 from: 'auto 200deg', | 123 from: 'auto 200deg', |
| 124 to: '300deg' | 124 to: '300deg' |
| 125 }); | 125 }); |
| 126 assertNoInterpolation({ | 126 assertNoInterpolation({ |
| 127 property: 'motion-rotation', | 127 property: 'motion-rotation', |
| 128 from: '300deg', | 128 from: '300deg', |
| 129 to: 'reverse 20deg' | 129 to: 'reverse 20deg' |
| 130 }); | 130 }); |
| 131 </script> | 131 </script> |
| 132 </body> | 132 </body> |
| OLD | NEW |