Bug 1873144 - Disabled test_conformance__textures__misc__texture-npot-video.html...
[gecko.git] / dom / svg / test / test_style_sheet.html
blob955dda1ac86ab5f3a5258cf2551e72e8ed5cfd10
1 <!DOCTYPE html>
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">
5 <body>
6 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1239128">Mozilla Bug 1239128</a>
7 <p id="display"</p>
9 <svg>
10 <style>svg { fill: blue; }</style>
11 </svg>
13 <pre id="test">
14 <script class="testbody" type="application/javascript">
15 var style = document.querySelector("style");
17 var exceptionThrown = false;
18 try {
19 is(style.sheet.cssRules[0].cssText, "svg { fill: blue; }",
20 "Should get the fill: blue rule back");
21 } catch (e) {
22 exceptionThrown = true;
25 ok(!exceptionThrown, "Should be able to access data: <style> stylesheet");
26 </script>
27 </pre>