| OLD | NEW |
| (Empty) | |
| 1 <!DOCTYPE html> |
| 2 <meta charset="UTF-8"> |
| 3 <style> |
| 4 .target { |
| 5 width: 10px; |
| 6 height: 10px; |
| 7 background-color: black; |
| 8 } |
| 9 .expected { |
| 10 background-color: green; |
| 11 } |
| 12 </style> |
| 13 <body> |
| 14 <script src="resources/interpolation-test.js"></script> |
| 15 <script> |
| 16 |
| 17 assertInterpolation({ |
| 18 property: 'border', |
| 19 from: '10px solid #000', |
| 20 to: '20px dashed #000', |
| 21 method: 'CSS Transitions', |
| 22 }, [ |
| 23 {at: -0.3, is: '7px dashed #000'}, |
| 24 {at: 0, is: '10px dashed #000'}, |
| 25 {at: 0.3, is: '13px dashed #000'}, |
| 26 {at: 0.6, is: '16px dashed #000'}, |
| 27 {at: 1, is: '20px dashed #000'}, |
| 28 {at: 1.5, is: '25px dashed #000'}, |
| 29 ]); |
| 30 |
| 31 assertInterpolation({ |
| 32 property: 'border', |
| 33 from: '10px solid #000', |
| 34 to: '20px dashed #000', |
| 35 method: 'CSS Animations', |
| 36 }, [ |
| 37 {at: -0.3, is: '7px solid #000'}, |
| 38 {at: 0, is: '10px solid #000'}, |
| 39 {at: 0.3, is: '13px solid #000'}, |
| 40 {at: 0.6, is: '16px dashed #000'}, |
| 41 {at: 1, is: '20px dashed #000'}, |
| 42 {at: 1.5, is: '25px dashed #000'}, |
| 43 ]); |
| 44 |
| 45 assertInterpolation({ |
| 46 property: 'border', |
| 47 from: '10px solid #000', |
| 48 to: '20px dashed #000', |
| 49 method: 'Web Animations', |
| 50 }, [ |
| 51 {at: -0.3, is: '7px solid #000'}, |
| 52 {at: 0, is: '10px solid #000'}, |
| 53 {at: 0.3, is: '13px solid #000'}, |
| 54 {at: 0.6, is: '16px dashed #000'}, |
| 55 {at: 1, is: '20px dashed #000'}, |
| 56 {at: 1.5, is: '25px dashed #000'}, |
| 57 ]); |
| 58 |
| 59 </script> |
| 60 </body> |
| OLD | NEW |