Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / script-tests / css-mediarule-parentRule.js
blobde4b86676fb8d799dba58ce32c830872488235e2
1 description(
2 'This tests that calling parentRule on the child rule of MediaRule is equal to that MediaRule.'
3 );
5 if (window.testRunner)
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")