2011-04-26 Simon Fraser <simon.fraser@apple.com>
[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      // Pause API isn't happy pausing during delay yet.
32      // https://bugs.webkit.org/show_bug.cgi?id=59475
33      runTransitionTest(expectedValues, setupTest, dontUsePauseAPI);
34    </script>
35 </head>
36 <body>
37   <div id="target"></div>
38   <div id="result"></div>
39
40 </body>
41 </html>