| 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 font-size Animation Using em Units</title> | 7 <title>Test of font-size Animation Using em Units</title> |
| 8 <style type="text/css" media="screen"> | 8 <style type="text/css" media="screen"> |
| 9 body { | 9 body { |
| 10 font-family: "arial"; | 10 font-family: "arial"; |
| 11 font-size: 10px; | 11 font-size: 10px; |
| 12 } | 12 } |
| 13 | 13 |
| 14 #box { | 14 #box { |
| 15 position: absolute; | 15 position: absolute; |
| 16 left: 0; | 16 left: 0; |
| 17 top: 100px; | 17 top: 100px; |
| 18 height: 250px; | 18 height: 250px; |
| 19 width: 400px; | 19 width: 400px; |
| 20 border: 1px solid black; | 20 border: 1px solid black; |
| 21 -webkit-animation-duration: 1s; | 21 animation-duration: 1s; |
| 22 -webkit-animation-timing-function: linear; | 22 animation-timing-function: linear; |
| 23 -webkit-animation-name: anim; | 23 animation-name: anim; |
| 24 } | 24 } |
| 25 @-webkit-keyframes anim { | 25 @keyframes anim { |
| 26 from { font-size: 1em; } | 26 from { font-size: 1em; } |
| 27 to { font-size: 2em; } | 27 to { font-size: 2em; } |
| 28 } | 28 } |
| 29 </style> | 29 </style> |
| 30 <script type="text/javascript" charset="utf-8"> | 30 <script type="text/javascript" charset="utf-8"> |
| 31 if (window.testRunner) { | 31 if (window.testRunner) { |
| 32 testRunner.dumpAsText(); | 32 testRunner.dumpAsText(); |
| 33 testRunner.waitUntilDone(); | 33 testRunner.waitUntilDone(); |
| 34 } | 34 } |
| 35 | 35 |
| (...skipping 23 matching lines...) Expand all Loading... |
| 59 { | 59 { |
| 60 setTimeout("snapshot(13)", 333); | 60 setTimeout("snapshot(13)", 333); |
| 61 | 61 |
| 62 window.setTimeout(function() { | 62 window.setTimeout(function() { |
| 63 document.getElementById('result').innerHTML = result; | 63 document.getElementById('result').innerHTML = result; |
| 64 if (window.testRunner) | 64 if (window.testRunner) |
| 65 testRunner.notifyDone(); | 65 testRunner.notifyDone(); |
| 66 }, 400); | 66 }, 400); |
| 67 } | 67 } |
| 68 | 68 |
| 69 document.addEventListener('webkitAnimationStart', start, false); | 69 document.addEventListener('animationstart', start, false); |
| 70 | 70 |
| 71 </script> | 71 </script> |
| 72 </head> | 72 </head> |
| 73 <body> | 73 <body> |
| 74 This test performs an animation of the font-size property using 'em' units. It t
ests whether or not we are properly | 74 This test performs an animation of the font-size property using 'em' units. It t
ests whether or not we are properly |
| 75 getting the default font-size. | 75 getting the default font-size. |
| 76 <div id="box"> | 76 <div id="box"> |
| 77 Here is some text. Here is some text. Here is some text. Here is some text. Here
is some text. Here is some text. | 77 Here is some text. Here is some text. Here is some text. Here is some text. Here
is some text. Here is some text. |
| 78 Here is some text. Here is some text. Here is some text. Here is some text. Here
is some text. Here is some text. | 78 Here is some text. Here is some text. Here is some text. Here is some text. Here
is some text. Here is some text. |
| 79 </div> | 79 </div> |
| 80 <div id="result"> | 80 <div id="result"> |
| 81 </div> | 81 </div> |
| 82 </body> | 82 </body> |
| 83 </html> | 83 </html> |
| OLD | NEW |