OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <meta charset="UTF-8"> | 2 <meta charset="UTF-8"> |
3 <style> | 3 <style> |
4 .container { | 4 .container { |
5 position: relative; | 5 position: relative; |
6 display: inline-block; | 6 display: inline-block; |
7 height: 10px; | 7 height: 10px; |
8 margin: 0px; | 8 margin: 0px; |
9 } | 9 } |
10 .target { | 10 .target { |
11 width: 10px; | 11 width: 10px; |
12 height: 10px; | 12 height: 10px; |
13 background-color: black; | 13 background-color: black; |
14 left: 10px; | 14 left: 10px; |
15 } | 15 } |
16 .expected { | 16 .expected { |
17 background-color: green; | 17 background-color: green; |
18 } | 18 } |
19 </style> | 19 </style> |
20 <template id="target-template"> | 20 <template id="target-template"> |
21 <div class="container"> | 21 <div class="container"> |
22 <div class="target"></div> | 22 <div class="target"></div> |
23 </div> | 23 </div> |
24 </template> | 24 </template> |
25 <body> | 25 <body> |
26 <script src="resources/interpolation-test.js"></script> | 26 <script src="resources/interpolation-test.js"></script> |
27 <script> | 27 <script> |
28 assertNoInterpolation({ | 28 assertNoInterpolation({ |
29 method: 'Web Animations', | |
30 property: 'position', | 29 property: 'position', |
31 from: 'absolute', | 30 from: 'absolute', |
32 to: 'static' | 31 to: 'static', |
33 }); | 32 }); |
| 33 assertInterpolation({ |
| 34 property: 'position', |
| 35 from: '', |
| 36 to: 'absolute', |
| 37 method: 'CSS Animations', |
| 38 }, [ |
| 39 {at: -1, is: 'static'}, |
| 40 {at: 0, is: 'static'}, |
| 41 {at: 0.25, is: 'static'}, |
| 42 {at: 0.5, is: 'absolute'}, |
| 43 {at: 0.75, is: 'absolute'}, |
| 44 {at: 1, is: 'absolute'}, |
| 45 {at: 2, is: 'absolute'}, |
| 46 ]); |
34 </script> | 47 </script> |
35 </body> | 48 </body> |
OLD | NEW |