3 <title>HIERARCHY_REQUEST_ERR raised if @import rule inserted after a regular rule
</title>
4 <style type=
"text/css">
10 window
.testRunner
.dumpAsText();
14 <div>This text should be red and the page should have no other style.
</div>
15 <div id=
"testresult">Fail
</div>
16 <script type=
"text/javascript">
19 document
.styleSheets
[0].insertRule("@import url(testStyle1.css);", 1);
23 if(window
.getComputedStyle(document
.body
, "").getPropertyValue("background-color") == "rgba(0, 0, 0, 0)" && document
.styleSheets
[0].cssRules
.length
== 2)
25 document
.getElementById("testresult").innerHTML
= "Pass";