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