| 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>Keyframes test</title> | 7 <title>Keyframes test</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 13 matching lines...) Expand all Loading... |
| 24 } | 24 } |
| 25 @keyframes irrelevant { | 25 @keyframes irrelevant { |
| 26 from { left: 150px; } | 26 from { left: 150px; } |
| 27 to { left: 2500px; } | 27 to { left: 2500px; } |
| 28 } | 28 } |
| 29 @keyframes anim { | 29 @keyframes anim { |
| 30 from { left: 200px; } | 30 from { left: 200px; } |
| 31 to { left: 300px; } | 31 to { left: 300px; } |
| 32 } | 32 } |
| 33 </style> | 33 </style> |
| 34 <script src="resources/animation-test-helpers.js" type="text/javascript" cha
rset="utf-8"></script> | 34 <script src="../resources/animation-test-helpers.js" type="text/javascript"
charset="utf-8"></script> |
| 35 <script type="text/javascript" charset="utf-8"> | 35 <script type="text/javascript" charset="utf-8"> |
| 36 | 36 |
| 37 const expectedValues = [ | 37 const expectedValues = [ |
| 38 // [time, element-id, property, expected-value, tolerance] | 38 // [time, element-id, property, expected-value, tolerance] |
| 39 [1, "box", "left", 300, 1], | 39 [1, "box", "left", 300, 1], |
| 40 ]; | 40 ]; |
| 41 | 41 |
| 42 runAnimationTest(expectedValues); | 42 runAnimationTest(expectedValues); |
| 43 | 43 |
| 44 </script> | 44 </script> |
| 45 </head> | 45 </head> |
| 46 <body> | 46 <body> |
| 47 This test verifies that the last @keyframes rule with a given name is the one us
ed. | 47 This test verifies that the last @keyframes rule with a given name is the one us
ed. |
| 48 <div id="box"> | 48 <div id="box"> |
| 49 </div> | 49 </div> |
| 50 <div id="result"> | 50 <div id="result"> |
| 51 </div> | 51 </div> |
| 52 </body> | 52 </body> |
| 53 </html> | 53 </html> |
| OLD | NEW |