| 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>Line Height Test</title> | 7 <title>Line Height 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; |
| 11 left: 0; | 11 left: 0; |
| 12 top: 100px; | 12 top: 100px; |
| 13 height: 250px; | 13 height: 250px; |
| 14 width: 400px; | 14 width: 400px; |
| 15 font-family: "arial"; | 15 font-family: "arial"; |
| 16 font-size: 10px; | 16 font-size: 10px; |
| 17 border: 1px solid black; | 17 border: 1px solid black; |
| 18 -webkit-animation-duration: 10s; | 18 animation-duration: 10s; |
| 19 -webkit-animation-timing-function: linear; | 19 animation-timing-function: linear; |
| 20 -webkit-animation-name: anim; | 20 animation-name: anim; |
| 21 } | 21 } |
| 22 @-webkit-keyframes anim { | 22 @keyframes anim { |
| 23 from { line-height: 1em; } | 23 from { line-height: 1em; } |
| 24 to { line-height: 2em; } | 24 to { line-height: 2em; } |
| 25 } | 25 } |
| 26 </style> | 26 </style> |
| 27 <script src="resources/animation-test-helpers.js" type="text/javascript" cha
rset="utf-8"></script> | 27 <script src="resources/animation-test-helpers.js" type="text/javascript" cha
rset="utf-8"></script> |
| 28 <script type="text/javascript" charset="utf-8"> | 28 <script type="text/javascript" charset="utf-8"> |
| 29 | 29 |
| 30 const expectedValues = [ | 30 const expectedValues = [ |
| 31 // [time, element-id, property, expected-value, tolerance] | 31 // [time, element-id, property, expected-value, tolerance] |
| 32 [0.1, "box", "lineHeight", 10, 1], | 32 [0.1, "box", "lineHeight", 10, 1], |
| 33 ]; | 33 ]; |
| 34 | 34 |
| 35 runAnimationTest(expectedValues); | 35 runAnimationTest(expectedValues); |
| 36 | 36 |
| 37 </script> | 37 </script> |
| 38 </head> | 38 </head> |
| 39 <body> | 39 <body> |
| 40 This test performs an animation of the line-height property. It tests whether or
not we are properly getting the font-size. | 40 This test performs an animation of the line-height property. It tests whether or
not we are properly getting the font-size. |
| 41 <div id="box"> | 41 <div id="box"> |
| 42 Here is some text. Here is some text. Here is some text. Here is some text. Here
is some text. Here is some text. | 42 Here is some text. Here is some text. Here is some text. Here is some text. Here
is some text. Here is some text. |
| 43 Here is some text. Here is some text. Here is some text. Here is some text. Here
is some text. Here is some text. | 43 Here is some text. Here is some text. Here is some text. Here is some text. Here
is some text. Here is some text. |
| 44 </div> | 44 </div> |
| 45 <div id="result"> | 45 <div id="result"> |
| 46 </div> | 46 </div> |
| 47 </body> | 47 </body> |
| 48 </html> | 48 </html> |
| OLD | NEW |