blob: 6873229d14d79463ce0f44df4490ab4987dcbc3c [file] [log] [blame]
dino@apple.com58635032018-09-12 20:59:33 +00001<!DOCTYPE html><!-- webkit-test-runner [ experimental:WebAnimationsCSSIntegrationEnabled=true ] -->
simon.fraser@apple.come5d2c892008-11-21 00:48:46 +00002
simon.fraser@apple.com4803cdd2011-04-26 03:25:14 +00003<html>
simon.fraser@apple.come5d2c892008-11-21 00:48:46 +00004<head>
simon.fraser@apple.come5d2c892008-11-21 00:48:46 +00005 <style>
simon.fraser@apple.com3d92c2b2011-04-26 21:49:10 +00006 #target {
simon.fraser@apple.come5d2c892008-11-21 00:48:46 +00007 position: relative;
8 left: 100px;
dino@apple.com60c426a2008-12-03 20:00:58 +00009 height: 50px;
10 width: 50px;
11 background-color: green;
simon.fraser@apple.com3d92c2b2011-04-26 21:49:10 +000012 -webkit-transition: left 1s linear 250ms;
simon.fraser@apple.come5d2c892008-11-21 00:48:46 +000013 }
14
simon.fraser@apple.com3d92c2b2011-04-26 21:49:10 +000015 #target.moved {
simon.fraser@apple.come5d2c892008-11-21 00:48:46 +000016 left: 200px;
17 }
simon.fraser@apple.com6510a132009-08-03 19:40:12 +000018 </style>
simon.fraser@apple.com4803cdd2011-04-26 03:25:14 +000019 <script src="resources/transition-test-helpers.js"></script>
simon.fraser@apple.com3d92c2b2011-04-26 21:49:10 +000020 <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
commit-queue@webkit.org70ac10b2012-11-27 19:16:27 +000031 runTransitionTest(expectedValues, setupTest, usePauseAPI);
simon.fraser@apple.come5d2c892008-11-21 00:48:46 +000032 </script>
33</head>
simon.fraser@apple.com3d92c2b2011-04-26 21:49:10 +000034<body>
35 <div id="target"></div>
36 <div id="result"></div>
simon.fraser@apple.come5d2c892008-11-21 00:48:46 +000037
38</body>
39</html>