| 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 10 matching lines...) Expand all Loading... |
| 21 @-webkit-keyframes anim { | 21 @-webkit-keyframes anim { |
| 22 from { left: 200px; } | 22 from { left: 200px; } |
| 23 to { left: 700px; } | 23 to { left: 700px; } |
| 24 } | 24 } |
| 25 | 25 |
| 26 @keyframes anim { | 26 @keyframes anim { |
| 27 from { left: 200px; } | 27 from { left: 200px; } |
| 28 to { left: 300px; } | 28 to { left: 300px; } |
| 29 } | 29 } |
| 30 </style> | 30 </style> |
| 31 <script src="resources/animation-test-helpers.js" type="text/javascript" cha
rset="utf-8"></script> | 31 <script src="../resources/animation-test-helpers.js" type="text/javascript"
charset="utf-8"></script> |
| 32 <script type="text/javascript" charset="utf-8"> | 32 <script type="text/javascript" charset="utf-8"> |
| 33 | 33 |
| 34 const expectedValues = [ | 34 const expectedValues = [ |
| 35 // [time, element-id, property, expected-value, tolerance] | 35 // [time, element-id, property, expected-value, tolerance] |
| 36 [1, "box", "left", 300, 1], | 36 [1, "box", "left", 300, 1], |
| 37 ]; | 37 ]; |
| 38 | 38 |
| 39 runAnimationTest(expectedValues); | 39 runAnimationTest(expectedValues); |
| 40 | 40 |
| 41 </script> | 41 </script> |
| 42 </head> | 42 </head> |
| 43 <body> | 43 <body> |
| 44 This test verifies that the unprefixed @keyframes rule is correctly parsed and o
verride the prefixed keyframe defined before. | 44 This test verifies that the unprefixed @keyframes rule is correctly parsed and o
verride the prefixed keyframe defined before. |
| 45 <div id="box"> | 45 <div id="box"> |
| 46 </div> | 46 </div> |
| 47 <div id="result"> | 47 <div id="result"> |
| 48 </div> | 48 </div> |
| 49 </body> | 49 </body> |
| 50 </html> | 50 </html> |
| OLD | NEW |