Kill suspendAnimation(), resumeAnimation() and numberOfActiveAnimations() from DRT...
[WebKit-https.git] / LayoutTests / transitions / transition-shorthand-delay.html
1 <!DOCTYPE html>
2
3 <html>
4 <head>
5   <style>
6     #target {
7       position: relative;
8       left: 100px;
9       height: 50px;
10       width: 50px;
11       background-color: green;
12       -webkit-transition: left 1s linear 250ms;
13     }
14     
15     #target.moved {
16       left: 200px;
17     }
18    </style>
19    <script src="resources/transition-test-helpers.js"></script>
20    <script>
21      const expectedValues = [
22        // [time, element-id, property, expected-value, tolerance]
23        [0.5, "target", "left", 125, 4],
24      ];
25
26      function setupTest()
27      {
28        document.getElementById("target").className = "moved";
29      }
30
31      runTransitionTest(expectedValues, setupTest, usePauseAPI);
32    </script>
33 </head>
34 <body>
35   <div id="target"></div>
36   <div id="result"></div>
37
38 </body>
39 </html>