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 .parent { |
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 position: 10px; |
15 } | 16 } |
16 .expected { | 17 .expected { |
17 background-color: green; | 18 background-color: green; |
18 } | 19 } |
19 </style> | 20 </style> |
20 <template id="target-template"> | 21 <template id="target-template"> |
21 <div class="container"> | 22 <div class="parent"> |
22 <div class="target"></div> | 23 <div class="target"></div> |
23 </div> | 24 </div> |
24 </template> | 25 </template> |
25 <body> | 26 <body> |
26 <script src="resources/interpolation-test.js"></script> | 27 <script src="resources/interpolation-test.js"></script> |
27 <script> | 28 <script> |
28 assertNoInterpolation({ | 29 assertNoInterpolation({ |
29 property: 'position', | 30 property: 'position', |
30 from: 'absolute', | 31 from: 'absolute', |
31 to: 'static', | 32 to: 'static', |
32 }); | 33 }); |
| 34 |
33 assertInterpolation({ | 35 assertInterpolation({ |
34 property: 'position', | 36 property: 'position', |
35 from: '', | 37 from: '', |
36 to: 'absolute', | 38 to: 'absolute', |
37 method: 'CSS Animations', | 39 method: 'CSS Animations', |
38 }, [ | 40 }, [ |
39 {at: -1, is: 'static'}, | 41 {at: -1, is: 'static'}, |
40 {at: 0, is: 'static'}, | 42 {at: 0, is: 'static'}, |
41 {at: 0.25, is: 'static'}, | 43 {at: 0.25, is: 'static'}, |
42 {at: 0.5, is: 'absolute'}, | 44 {at: 0.5, is: 'absolute'}, |
43 {at: 0.75, is: 'absolute'}, | 45 {at: 0.75, is: 'absolute'}, |
44 {at: 1, is: 'absolute'}, | 46 {at: 1, is: 'absolute'}, |
45 {at: 2, is: 'absolute'}, | 47 {at: 2, is: 'absolute'}, |
46 ]); | 48 ]); |
47 </script> | 49 </script> |
48 </body> | 50 </body> |
OLD | NEW |