62a8aad24a9d8fd5c9b66cb002b30776d0463432
[WebKit-https.git] / LayoutTests / animations / fill-forwards-end-state.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4   <title>Test animation with multiple concurrent animations</title>
5   <style type="text/css" media="screen">
6     #box1 {
7       position: relative;
8       left: 10px;
9       top: 10px;
10       height: 100px;
11       width: 100px;
12       background-color: blue;
13       animation: anim1 2s 0.2s linear forwards;
14     }
15     @keyframes anim1 {
16         from { left: 100px; }
17         40%  { left: 0px; }
18         60%  { left: 250px; }
19         to   { left: 100px; }
20     }
21   </style>
22   <script src="resources/animation-test-helpers.js" type="text/javascript" charset="utf-8"></script>
23   <script type="text/javascript" charset="utf-8">
24
25     const expectedValues = [
26       // [animation-name, time, element-id, property, expected-value, tolerance]
27       ["anim1", 2.5, "box1", "left", 100, 2],
28     ];
29
30     var disablePauseAnimationAPI = false;
31     runAnimationTest(expectedValues, null, null, disablePauseAnimationAPI);
32   </script>
33 </head>
34 <body>
35 <p>Fill-forwards state should be the last keyframe state.</p>
36 <div id="box1"></div>
37 <div id="result"></div>
38 </body>
39 </html>