Header parsing for experimental and internal debug features
[WebKit-https.git] / LayoutTests / animations / unprefixed-keyframes.html
1 <!DOCTYPE html><!-- webkit-test-runner [ experimental:WebAnimationsCSSIntegrationEnabled=true ] -->
2 <html>
3 <head>
4   <title>Unprefixed keyframes test</title>
5   <style>
6     #box {
7         position: absolute;
8         left: 0;
9         top: 100px;
10         height: 100px;
11         width: 100px;
12         background-color: blue;
13         animation-duration: 1s;
14         animation-timing-function: linear;
15         animation-name: anim;
16     }
17     @keyframes anim {
18         from { left: 50px; }
19         20%  { left: 100px; }
20         40%  { left: 100px; }
21         60%  { left: 200px; }
22         80%  { left: 200px; }
23         to   { left: 300px; }
24     }
25     </style>
26     <script src="resources/animation-test-helpers.js" type="text/javascript" charset="utf-8"></script>
27     <script type="text/javascript" charset="utf-8">
28
29     var expectedValues = [
30       // [animation-name, time, element-id, property, expected-value, tolerance]
31       ["anim", 0.3, "box", "left", 100, 1],
32       ["anim", 0.7, "box", "left", 200, 1],
33     ];
34
35     runAnimationTest(expectedValues);
36
37   </script>
38 </head>
39 <body>
40 This test performs an animation of the left property. It should stop for 100ms at 100px and 200px
41 We test for those values 50ms after it has stopped at each position.
42 <div id="box">
43 </div>
44 <div id="result">
45 </div>
46 </body>
47 </html>