2 'This tests that calling parentRule on the child rule of MediaRule is equal to that MediaRule.'
6 testRunner
.dumpAsText();
8 var head
= document
.getElementsByTagName('head')[0];
9 head
.innerHTML
= "<style>@media all { a { border-color: red; } }</style>";
11 var styleSheetList
= document
.styleSheets
;
12 var styleSheet
= styleSheetList
[0];
13 var mediaRule
= styleSheet
.cssRules
[0];
14 var childRule
= mediaRule
.cssRules
[0];
16 shouldBe("childRule.parentRule", "mediaRule")