1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
2 "http://www.w3.org/TR/html4/loose.dtd">
6 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
7 <title>Keyframe Timing Functions</title>
8 <style type="text/css" media="screen">
12 border: 1px solid black;
21 background-color: blue;
22 -webkit-animation-name: move;
23 -webkit-animation-duration: 1.5s;
26 @-webkit-keyframes move {
29 -webkit-animation-timing-function: linear;
37 <script src="resources/animation-test-helpers.js" type="text/javascript" charset="utf-8"></script>
38 <script type="text/javascript" charset="utf-8">
40 const expectedValues = [
41 // [animation-name, time, element-id, property, expected-value, tolerance]
42 ["move", 0.75, "box", "left", 300, 20],
45 runAnimationTest(expectedValues);
51 This test should do a linear animation. The timing-function comes from the keyframe, so this is testing
52 whether or not the timing function in keyframes is used.