| 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: 'offset', |
| 19 from: 'path("M0 200H 700") 500px 800deg', |
| 20 to: 'path("M0 300H 700 Z") 600px 900deg', |
| 21 method: 'CSS Transitions', |
| 22 }, [ |
| 23 {at: -0.3, is: 'path("M0 300H 700 Z") 470px 770deg'}, |
| 24 {at: 0, is: 'path("M0 300H 700 Z") 500px 800deg'}, |
| 25 {at: 0.3, is: 'path("M0 300H 700 Z") 530px 830deg'}, |
| 26 {at: 0.6, is: 'path("M0 300H 700 Z") 560px 860deg'}, |
| 27 {at: 1, is: 'path("M0 300H 700 Z") 600px 900deg'}, |
| 28 {at: 1.5, is: 'path("M0 300H 700 Z") 650px 950deg'}, |
| 29 ]); |
| 30 |
| 31 assertInterpolation({ |
| 32 property: 'offset', |
| 33 from: 'path("M0 0H 200") 500px auto', |
| 34 to: 'path("M0 0H 300") 600px 0deg', |
| 35 method: 'CSS Transitions', |
| 36 }, [ |
| 37 {at: -0.3, is: 'path("M0 0H 300") 470px 0deg'}, |
| 38 {at: 0, is: 'path("M0 0H 300") 500px 0deg'}, |
| 39 {at: 0.3, is: 'path("M0 0H 300") 530px 0deg'}, |
| 40 {at: 0.6, is: 'path("M0 0H 300") 560px 0deg'}, |
| 41 {at: 1, is: 'path("M0 0H 300") 600px 0deg'}, |
| 42 {at: 1.5, is: 'path("M0 0H 300") 650px 0deg'}, |
| 43 ]); |
| 44 |
| 45 assertInterpolation({ |
| 46 property: 'offset', |
| 47 from: 'path("M0 200H 700") 500px 800deg', |
| 48 to: 'path("M0 300H 700 Z") 600px 900deg', |
| 49 method: 'CSS Animations', |
| 50 }, [ |
| 51 {at: -0.3, is: 'path("M0 200H 700") 470px 770deg'}, |
| 52 {at: 0, is: 'path("M0 200H 700") 500px 800deg'}, |
| 53 {at: 0.3, is: 'path("M0 200H 700") 530px 830deg'}, |
| 54 {at: 0.6, is: 'path("M0 300H 700 Z") 560px 860deg'}, |
| 55 {at: 1, is: 'path("M0 300H 700 Z") 600px 900deg'}, |
| 56 {at: 1.5, is: 'path("M0 300H 700 Z") 650px 950deg'}, |
| 57 ]); |
| 58 |
| 59 assertInterpolation({ |
| 60 property: 'offset', |
| 61 from: 'path("M0 0H 200") 500px auto', |
| 62 to: 'path("M0 0H 300") 600px 0deg', |
| 63 method: 'CSS Animations', |
| 64 }, [ |
| 65 {at: -0.3, is: 'path("M0 0H 200") 470px auto'}, |
| 66 {at: 0, is: 'path("M0 0H 200") 500px auto'}, |
| 67 {at: 0.3, is: 'path("M0 0H 200") 530px auto'}, |
| 68 {at: 0.6, is: 'path("M0 0H 300") 560px 0deg'}, |
| 69 {at: 1, is: 'path("M0 0H 300") 600px 0deg'}, |
| 70 {at: 1.5, is: 'path("M0 0H 300") 650px 0deg'}, |
| 71 ]); |
| 72 |
| 73 assertInterpolation({ |
| 74 property: 'offset', |
| 75 from: 'path("M0 200H 700") 500px 800deg', |
| 76 to: 'path("M0 300H 700 Z") 600px 900deg', |
| 77 method: 'Web Animations', |
| 78 }, [ |
| 79 {at: -0.3, is: 'path("M0 200H 700") 470px 770deg'}, |
| 80 {at: 0, is: 'path("M0 200H 700") 500px 800deg'}, |
| 81 {at: 0.3, is: 'path("M0 200H 700") 530px 830deg'}, |
| 82 {at: 0.6, is: 'path("M0 300H 700 Z") 560px 860deg'}, |
| 83 {at: 1, is: 'path("M0 300H 700 Z") 600px 900deg'}, |
| 84 {at: 1.5, is: 'path("M0 300H 700 Z") 650px 950deg'}, |
| 85 ]); |
| 86 |
| 87 assertInterpolation({ |
| 88 property: 'offset', |
| 89 from: 'path("M0 0H 200") 500px auto', |
| 90 to: 'path("M0 0H 300") 600px 0deg', |
| 91 method: 'Web Animations', |
| 92 }, [ |
| 93 {at: -0.3, is: 'path("M0 0H 200") 470px auto'}, |
| 94 {at: 0, is: 'path("M0 0H 200") 500px auto'}, |
| 95 {at: 0.3, is: 'path("M0 0H 200") 530px auto'}, |
| 96 {at: 0.6, is: 'path("M0 0H 300") 560px 0deg'}, |
| 97 {at: 1, is: 'path("M0 0H 300") 600px 0deg'}, |
| 98 {at: 1.5, is: 'path("M0 0H 300") 650px 0deg'}, |
| 99 ]); |
| 100 |
| 101 </script> |
| 102 </body> |
| OLD | NEW |