2 <title>Test for Bug
1239128</title>
3 <script src=
"/tests/SimpleTest/SimpleTest.js"></script>
4 <link rel=
"stylesheet" type=
"text/css" href=
"/tests/SimpleTest/test.css">
6 <a target=
"_blank" href=
"https://bugzilla.mozilla.org/show_bug.cgi?id=1239128">Mozilla Bug
1239128</a>
10 <style>svg { fill: blue; }
</style>
14 <script class=
"testbody" type=
"application/javascript">
15 var style = document.querySelector(
"style");
17 var exceptionThrown = false;
19 is(style.sheet.cssRules[
0].cssText,
"svg { fill: blue; }",
20 "Should get the fill: blue rule back");
22 exceptionThrown = true;
25 ok(!exceptionThrown,
"Should be able to access data: <style> stylesheet");