| OLD | NEW |
| (Empty) | |
| 1 <html> |
| 2 <head> |
| 3 <script src="../fast/js/resources/js-test-pre.js"></script> |
| 4 <style type="text/css"> |
| 5 @-webkit-keyframes animation { |
| 6 -100% { |
| 7 top: 100px; |
| 8 -webkit-animation-timing-function: ease-out; |
| 9 } |
| 10 |
| 11 70% { |
| 12 top: 50px; |
| 13 -webkit-animation-timing-function: ease-in; |
| 14 } |
| 15 |
| 16 -50% { |
| 17 top: 100px; |
| 18 -webkit-animation-timing-function: ease-out; |
| 19 } |
| 20 |
| 21 25% { |
| 22 top: 75px; |
| 23 -webkit-animation-timing-function: ease-in; |
| 24 } |
| 25 |
| 26 10%, -20% { |
| 27 top: 75px; |
| 28 -webkit-animation-timing-function: ease-in; |
| 29 } |
| 30 |
| 31 from { |
| 32 top: 100px; |
| 33 } |
| 34 } |
| 35 |
| 36 div.animation { |
| 37 background-color: green; |
| 38 width: 50px; |
| 39 height: 50px; |
| 40 margin: 20px; |
| 41 position: relative; |
| 42 -webkit-animation-duration: 0.5s; |
| 43 -webkit-animation-timing-function: linear; |
| 44 -webkit-animation-name: "animation"; |
| 45 |
| 46 } |
| 47 </style> |
| 48 </head> |
| 49 <body> |
| 50 <div class="animation"/> |
| 51 <script type="text/javascript"> |
| 52 description("This test verifies that keyframe rule is ignored whenever key
frame selectors have invalid value."); |
| 53 shouldBeFalse("hasKeyframesRule()"); |
| 54 function hasKeyframesRule() |
| 55 { |
| 56 var ss = document.styleSheets; |
| 57 for (var i = 0; i < ss.length; ++i) { |
| 58 for (var j = 0; j < ss[i].cssRules.length; ++j) { |
| 59 if (ss[i].cssRules[j].type == window.CSSRule.WEBKIT_KEYFRAMES_RU
LE) |
| 60 return true; |
| 61 } |
| 62 } |
| 63 return false; |
| 64 } |
| 65 </script> |
| 66 <script src="../fast/js/resources/js-test-post.js"></script> |
| 67 </body> |
| 68 </html> |
| OLD | NEW |