| 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 simultaneous starting of two animations</title> | 7 <title>Test simultaneous starting of two animations</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 top: 40px; | 11 top: 40px; |
| 12 height: 100px; | 12 height: 100px; |
| 13 width: 100px; | 13 width: 100px; |
| 14 background-color: blue; | 14 background-color: blue; |
| 15 -webkit-animation-duration: 10s; | 15 -webkit-animation-duration: 10s; |
| 16 -webkit-animation-timing-function: linear; | 16 -webkit-animation-timing-function: linear; |
| 17 -webkit-animation-name: "anim"; | 17 -webkit-animation-name: "anim"; |
| 18 } | 18 } |
| 19 @-webkit-keyframes "anim" { | 19 @-webkit-keyframes "anim" { |
| 20 from { -webkit-transform: rotate(0deg); } | 20 from { transform: rotate(0deg); } |
| 21 to { -webkit-transform: rotate(360deg); } | 21 to { transform: rotate(360deg); } |
| 22 } | 22 } |
| 23 #box1 { | 23 #box1 { |
| 24 left: 40px; | 24 left: 40px; |
| 25 background-color: blue; | 25 background-color: blue; |
| 26 } | 26 } |
| 27 #box2 { | 27 #box2 { |
| 28 left: 160px; | 28 left: 160px; |
| 29 background-color: red; | 29 background-color: red; |
| 30 } | 30 } |
| 31 </style> | 31 </style> |
| (...skipping 21 matching lines...) Expand all Loading... |
| 53 This test performs an animation of the transform property. It animates over 10 s
econds. | 53 This test performs an animation of the transform property. It animates over 10 s
econds. |
| 54 It takes 3 snapshots and expects each result to be within a specified range. | 54 It takes 3 snapshots and expects each result to be within a specified range. |
| 55 <div id="box1" class="box"> | 55 <div id="box1" class="box"> |
| 56 </div> | 56 </div> |
| 57 <div id="box2" class="box"> | 57 <div id="box2" class="box"> |
| 58 </div> | 58 </div> |
| 59 <div id="result" style="position:absolute; top:150px"> | 59 <div id="result" style="position:absolute; top:150px"> |
| 60 </div> | 60 </div> |
| 61 </body> | 61 </body> |
| 62 </html> | 62 </html> |
| OLD | NEW |