| 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>Test of @import rule for importing keyframes</title> | 7 <title>Test of @import rule for importing keyframes</title> |
| 8 <style type="text/css"> @import "resources/keyframes.css"; </style> | 8 <style type="text/css"> @import "resources/keyframes.css"; </style> |
| 9 <style type="text/css" media="screen"> | 9 <style type="text/css" media="screen"> |
| 10 #box { | 10 #box { |
| 11 position: absolute; | 11 position: absolute; |
| 12 left: 0; | 12 left: 0; |
| 13 top: 100px; | 13 top: 100px; |
| 14 height: 100px; | 14 height: 100px; |
| 15 width: 100px; | 15 width: 100px; |
| 16 background-color: blue; | 16 background-color: blue; |
| 17 -webkit-animation-duration: 1s; | 17 animation-duration: 1s; |
| 18 -webkit-animation-timing-function: linear; | 18 animation-timing-function: linear; |
| 19 -webkit-animation-name: anim; | 19 animation-name: anim; |
| 20 } | 20 } |
| 21 </style> | 21 </style> |
| 22 <script src="resources/animation-test-helpers.js" type="text/javascript" cha
rset="utf-8"></script> | 22 <script src="resources/animation-test-helpers.js" type="text/javascript" cha
rset="utf-8"></script> |
| 23 <script type="text/javascript" charset="utf-8"> | 23 <script type="text/javascript" charset="utf-8"> |
| 24 | 24 |
| 25 const expectedValues = [ | 25 const expectedValues = [ |
| 26 // [time, element-id, property, expected-value, tolerance] | 26 // [time, element-id, property, expected-value, tolerance] |
| 27 [0.3, "box", "left", 100, 1], | 27 [0.3, "box", "left", 100, 1], |
| 28 [0.7, "box", "left", 200, 1], | 28 [0.7, "box", "left", 200, 1], |
| 29 ]; | 29 ]; |
| 30 | 30 |
| 31 runAnimationTest(expectedValues); | 31 runAnimationTest(expectedValues); |
| 32 | 32 |
| 33 </script> | 33 </script> |
| 34 </head> | 34 </head> |
| 35 <body> | 35 <body> |
| 36 This test performs an animation of the left property. It should stop for 100ms a
t 100px and 200px | 36 This test performs an animation of the left property. It should stop for 100ms a
t 100px and 200px |
| 37 We test for those values 50ms after it has stopped at each position. The keyfram
es are imported | 37 We test for those values 50ms after it has stopped at each position. The keyfram
es are imported |
| 38 so this tests whether they come in correctly. | 38 so this tests whether they come in correctly. |
| 39 <div id="box"> | 39 <div id="box"> |
| 40 </div> | 40 </div> |
| 41 <div id="result"> | 41 <div id="result"> |
| 42 </div> | 42 </div> |
| 43 </body> | 43 </body> |
| 44 </html> | 44 </html> |
| OLD | NEW |