| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <meta charset="utf-8"> | 4 <meta charset="utf-8"> |
| 5 <script src="../js/resources/js-test-pre.js"></script> | 5 <script src="../js/resources/js-test-pre.js"></script> |
| 6 <style> | 6 <style> |
| 7 @-webkit-keyframes anim { | 7 @-webkit-keyframes anim { |
| 8 from { | 8 from { |
| 9 color: green; | 9 color: green; |
| 10 } | 10 } |
| 11 } | 11 } |
| 12 </style> | 12 </style> |
| 13 </head> | 13 </head> |
| 14 <body> | 14 <body> |
| 15 <script> | 15 <script> |
| 16 | 16 |
| 17 description("This test verifies that a keyframe rule's 'parentRule' points back
to the keyframe rule."); | 17 description("This test verifies that a keyframe rule's 'parentRule' points back
to the keyframe rule."); |
| 18 | 18 |
| 19 var rules = document.styleSheets[1].cssRules; | 19 var rules = document.styleSheets[1].cssRules; |
| 20 | 20 |
| 21 shouldBe("rules[0][0].parentRule", "rules[0]"); | 21 shouldBe("rules[0][0].parentRule", "rules[0]"); |
| 22 shouldBe("rules[0][0].style.parentRule", "rules[0][0]"); | 22 shouldBe("rules[0][0].style.parentRule", "rules[0][0]"); |
| 23 | 23 |
| 24 </script> | 24 </script> |
| 25 <script src="../js/resources/js-test-post.js"></script> | |
| 26 </body> | 25 </body> |
| 27 </html> | 26 </html> |
| OLD | NEW |