Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / css / modify-ua-rules-from-javascript.html
blob1417922f0c67e57b73cba01834db7af840a63ecb
1 <!doctype html>
2 <html>
3 <head>
4 <title>Test for Bug 35014 - Modifying UA rules from page JS crashes</title>
5 <script>
6 if (window.testRunner)
7 testRunner.dumpAsText();
9 function test()
11 var cssRulesList = window.getMatchedCSSRules(document.body, "", false);
12 if (cssRulesList)
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";
21 </script>
22 </head>
23 <body onload="test()">
24 <div id="result">
25 PASS
26 </div>
27 </body>
28 </html>