OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <script src="../resources/testharness.js"></script> | 2 <script src="../../resources/testharness.js"></script> |
3 <script src="../resources/testharnessreport.js"></script> | 3 <script src="../../resources/testharnessreport.js"></script> |
4 <style> | 4 <style> |
5 @keyframes anim { | 5 @keyframes anim { |
6 from { animation-timing-function: linear; } | 6 from { animation-timing-function: linear; } |
7 to { left: 500px; } | 7 to { left: 500px; } |
8 } | 8 } |
9 | 9 |
10 #target { | 10 #target { |
11 animation: anim 10s -1s paused ease-in-out; | 11 animation: anim 10s -1s paused ease-in-out; |
12 left: 0px; | 12 left: 0px; |
13 position: absolute; | 13 position: absolute; |
14 } | 14 } |
15 </style> | 15 </style> |
16 <div id="target"></div> | 16 <div id="target"></div> |
17 <script> | 17 <script> |
18 test(function() { | 18 test(function() { |
19 assert_equals(parseInt(getComputedStyle(target).left), 50, 'left offset'); /
/ Should be linearly interpolated | 19 assert_equals(parseInt(getComputedStyle(target).left), 50, 'left offset'); /
/ Should be linearly interpolated |
20 }, "Check that explicitly specified timing functions in neutral keyframes over
ride default"); | 20 }, "Check that explicitly specified timing functions in neutral keyframes over
ride default"); |
21 </script> | 21 </script> |
OLD | NEW |