4 <title>Test for Bug
35014 - Modifying UA rules from page JS crashes
</title>
7 testRunner
.dumpAsText();
11 var cssRulesList
= window
.getMatchedCSSRules(document
.body
, "", false);
14 var styleToChange
= cssRulesList
[0].style
;
15 var originalMarginTop
= styleToChange
.marginTop
;
16 styleToChange
.marginTop
= "200px";
17 styleToChange
.marginTop
= originalMarginTop
;
18 document
.getElementById("result").innerHTML
= "FAIL";
23 <body onload=
"test()">