Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / animations / keyframe-timing-functions-transform.html
blobd0adc90d0d450ece0532147a8110c0fbbd78f76e
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 transform: translateX(0);
26 -webkit-animation-timing-function: ease-out;
28 10% {
29 transform: translateX(100px);
30 -webkit-animation-timing-function: linear;
32 90% {
33 transform: translateX(500px);
34 -webkit-animation-timing-function: ease-in;
36 100% {
37 transform: translateX(600px);
41 </style>
42 <script src="resources/animation-test-helpers.js" type="text/javascript" charset="utf-8"></script>
43 <script type="text/javascript" charset="utf-8">
45 const expectedValues = [
46 // [time, element-id, property, expected-value, tolerance]
47 [0.75, "box", "webkitTransform.4", 300, 20],
50 runAnimationTest(expectedValues);
51 </script>
52 </head>
53 <body>
55 Tests whether timing functions inside keyframes are respected.
56 <div id="container">
57 <div id="box"></div>
58 </div>
59 <div id="result">
60 </div>
61 </body>
62 </html>