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 left: -10px; | 5 left: -10px; |
6 } | 6 } |
7 .target { | 7 .target { |
8 position: relative; | 8 position: relative; |
9 width: 10px; | 9 width: 10px; |
10 height: 10px; | 10 height: 10px; |
(...skipping 13 matching lines...) Expand all Loading... |
24 </template> | 24 </template> |
25 <script src="resources/interpolation-test.js"></script> | 25 <script src="resources/interpolation-test.js"></script> |
26 <script> | 26 <script> |
27 // When viewing this test manually you will need to pass --expose-internals-for-
testing to content_shell. | 27 // When viewing this test manually you will need to pass --expose-internals-for-
testing to content_shell. |
28 if (window.internals) { | 28 if (window.internals) { |
29 internals.setZoomFactor(2); | 29 internals.setZoomFactor(2); |
30 } | 30 } |
31 | 31 |
32 assertInterpolation({ | 32 assertInterpolation({ |
33 property: 'left', | 33 property: 'left', |
34 from: '', | 34 from: neutralKeyframe, |
35 to: '10px', | 35 to: '10px', |
36 method: 'CSS Animations', | 36 method: 'CSS Animations', |
37 }, [ | 37 }, [ |
38 {at: -0.5, is: '25px'}, | 38 {at: -0.5, is: '25px'}, |
39 {at: 0, is: '20px'}, | 39 {at: 0, is: '20px'}, |
40 {at: 0.5, is: '15px'}, | 40 {at: 0.5, is: '15px'}, |
41 {at: 1, is: '10px'}, | 41 {at: 1, is: '10px'}, |
42 {at: 1.5, is: '5px'}, | 42 {at: 1.5, is: '5px'}, |
43 ]); | 43 ]); |
44 | 44 |
45 assertInterpolation({ | 45 assertInterpolation({ |
46 property: 'left', | 46 property: 'left', |
47 from: 'inherit', | 47 from: 'inherit', |
48 to: '10px', | 48 to: '10px', |
49 }, [ | 49 }, [ |
50 {at: -0.5, is: '-20px'}, | 50 {at: -0.5, is: '-20px'}, |
51 {at: 0, is: '-10px'}, | 51 {at: 0, is: '-10px'}, |
52 {at: 0.5, is: '0px'}, | 52 {at: 0.5, is: '0px'}, |
53 {at: 1, is: '10px'}, | 53 {at: 1, is: '10px'}, |
54 {at: 1.5, is: '20px'}, | 54 {at: 1.5, is: '20px'}, |
55 ]); | 55 ]); |
56 </script> | 56 </script> |
OLD | NEW |