OLD | NEW |
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" | 1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" |
2 "http://www.w3.org/TR/html4/loose.dtd"> | 2 "http://www.w3.org/TR/html4/loose.dtd"> |
3 | 3 |
4 <html lang="en"> | 4 <html lang="en"> |
5 <head> | 5 <head> |
6 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | 6 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
7 <title>Transition/Animation Test #2</title> | 7 <title>Transition/Animation Test #2</title> |
8 <style type="text/css" media="screen"> | 8 <style type="text/css" media="screen"> |
9 #box { | 9 #box { |
10 position: absolute; | 10 position: absolute; |
(...skipping 20 matching lines...) Expand all Loading... |
31 const expectedValues = [ | 31 const expectedValues = [ |
32 // [animation-name, time, element-id, property, expected-value, tolerance] | 32 // [animation-name, time, element-id, property, expected-value, tolerance] |
33 [null, 0.4, "box", "webkitTransform.5", 0, 0], | 33 [null, 0.4, "box", "webkitTransform.5", 0, 0], |
34 ]; | 34 ]; |
35 | 35 |
36 function setup() | 36 function setup() |
37 { | 37 { |
38 document.getElementById("box").style.webkitTransform = "translateX(400px
)"; | 38 document.getElementById("box").style.webkitTransform = "translateX(400px
)"; |
39 } | 39 } |
40 | 40 |
41 runAnimationTest(expectedValues, setup); | 41 runAnimationTest(expectedValues, undefined, undefined, 'do-not-use-pause-api
'); |
42 | 42 |
43 </script> | 43 </script> |
44 </head> | 44 </head> |
45 <body> | 45 <body> |
46 This test has a transition and animation on the same property (-webkit-transform
). | 46 This test has a transition and animation on the same property (-webkit-transform
). |
47 The animation starts and then the transition is triggered. The transition should
start | 47 The animation starts and then the transition is triggered. The transition should
start |
48 at the position before the animation started (the unanimated position), which is
(0,0). If it | 48 at the position before the animation started (the unanimated position), which is
(0,0). If it |
49 starts from the start point of the animation (0,100) then there is an error | 49 starts from the start point of the animation (0,100) then there is an error |
50 <div id="box"> | 50 <div id="box"> |
51 </div> | 51 </div> |
52 <div id="result"> | 52 <div id="result"> |
53 </div> | 53 </div> |
54 </body> | 54 </body> |
55 </html> | 55 </html> |
OLD | NEW |