| 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>Keyframe Timing Functions</title> | 7 <title>Keyframe Timing Functions</title> |
| 8 <style type="text/css" media="screen"> | 8 <style type="text/css" media="screen"> |
| 9 | 9 |
| 10 #container { | 10 #container { |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 0% { | 27 0% { |
| 28 left: 0; | 28 left: 0; |
| 29 animation-timing-function: linear; | 29 animation-timing-function: linear; |
| 30 } | 30 } |
| 31 100% { | 31 100% { |
| 32 left: 600px; | 32 left: 600px; |
| 33 } | 33 } |
| 34 } | 34 } |
| 35 | 35 |
| 36 </style> | 36 </style> |
| 37 <script src="resources/animation-test-helpers.js" type="text/javascript" chars
et="utf-8"></script> | 37 <script src="../resources/animation-test-helpers.js" type="text/javascript" ch
arset="utf-8"></script> |
| 38 <script type="text/javascript" charset="utf-8"> | 38 <script type="text/javascript" charset="utf-8"> |
| 39 | 39 |
| 40 const expectedValues = [ | 40 const expectedValues = [ |
| 41 // [time, element-id, property, expected-value, tolerance] | 41 // [time, element-id, property, expected-value, tolerance] |
| 42 [0.75, "box", "left", 300, 20], | 42 [0.75, "box", "left", 300, 20], |
| 43 ]; | 43 ]; |
| 44 | 44 |
| 45 runAnimationTest(expectedValues); | 45 runAnimationTest(expectedValues); |
| 46 </script> | 46 </script> |
| 47 </head> | 47 </head> |
| 48 <body> | 48 <body> |
| 49 | 49 |
| 50 <div id="container"> | 50 <div id="container"> |
| 51 This test should do a linear animation. The timing-function comes from the k
eyframe, so this is testing | 51 This test should do a linear animation. The timing-function comes from the k
eyframe, so this is testing |
| 52 whether or not the timing function in keyframes is used. | 52 whether or not the timing function in keyframes is used. |
| 53 <div id="box"></div> | 53 <div id="box"></div> |
| 54 </div> | 54 </div> |
| 55 <div id="result"> | 55 <div id="result"> |
| 56 </div> | 56 </div> |
| 57 </body> | 57 </body> |
| 58 </html> | 58 </html> |
| OLD | NEW |