Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / animations / keyframe-timing-functions2.html
blobaa73cc0adda5483f2b68f381f2b3fc7366f317b5
1 <!DOCTYPE html>
3 <html>
4 <head>
5 <style type="text/css" media="screen">
7 #container {
8 position: relative;
9 border: 1px solid black;
10 height: 100px;
11 width: 700px;
14 #box {
15 position: absolute;
16 height: 100px;
17 width: 100px;
18 background-color: blue;
19 -webkit-animation-name: move;
20 -webkit-animation-duration: 1.5s;
23 @-webkit-keyframes move {
24 0% {
25 left: 0;
26 -webkit-animation-timing-function: ease-out;
28 10% {
29 left: 100px;
30 -webkit-animation-timing-function: linear;
32 90% {
33 left: 500px;
34 -webkit-animation-timing-function: ease-in;
36 100% {
37 left: 600px;
40 </style>
41 <script src="resources/animation-test-helpers.js" type="text/javascript" charset="utf-8"></script>
42 <script type="text/javascript" charset="utf-8">
44 const expectedValues = [
45 // [time, element-id, property, expected-value, tolerance]
46 [0.75, "box", "left", 300, 20],
49 runAnimationTest(expectedValues);
50 </script>
51 </head>
52 <body>
54 Tests whether timing functions inside keyframes are respected.
55 <div id="container">
56 <div id="box"></div>
57 </div>
58 <div id="result">
59 </div>
60 </body>
61 </html>