Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / animations / animation-direction-alternate-reverse.html
blobcd8f3533eb92f59b3c25a4c292802bae2e2a7ffa
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: 500px;
14 #box {
15 position: absolute;
16 height: 100px;
17 width: 100px;
18 background-color: blue;
19 -webkit-animation-name: move;
20 -webkit-animation-duration: 2s;
21 -webkit-animation-direction: alternate-reverse;
22 -webkit-animation-iteration-count: 2;
23 -webkit-animation-timing-function: linear;
24 -webkit-animation-fill-mode: forwards;
27 @-webkit-keyframes move {
28 0% {
29 left: 0;
31 100% {
32 left: 400px;
36 </style>
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 // [time, element-id, property, expected-value, tolerance]
42 [1.0, "box", "left", 200, 20],
43 [2.0, "box", "left", 0, 20],
45 [3.0, "box", "left", 200, 20],
46 [4.0, "box", "left", 400, 20],
49 runAnimationTest(expectedValues);
50 </script>
51 </head>
52 <body>
54 <!-- Test animation-direction: alternate-reverse -->
55 <div id="container">
56 <div id="box"></div>
57 </div>
59 <div id="result"></div>
61 </body>
62 </html>