4 https://bugzilla.mozilla.org/show_bug.cgi?id=517224
7 <title>Test for Bug
517224</title>
8 <script src=
"/tests/SimpleTest/SimpleTest.js"></script>
9 <link rel=
"stylesheet" type=
"text/css" href=
"/tests/SimpleTest/test.css"/>
10 <script type=
"application/ecmascript" src=
"bug517224.sjs?reset"></script>
11 <style type=
"text/css">
13 p#display
{ background: url
(bug517224
.sjs?image
); }
14 p#display
{ background-image: none
; }
19 <a target=
"_blank" href=
"https://bugzilla.mozilla.org/show_bug.cgi?id=517224">Mozilla Bug
517224</a>
20 <p id=
"display">Element with overridden background
</p>
22 <script type=
"application/javascript">
24 /** Test for Bug
517224 **/
26 // Test that we don't load background images for style rules that are
29 // Make sure the style has been computed
31 getComputedStyle(document.getElementById('display'),
"").backgroundImage;
32 SimpleTest.waitForExplicitFinish();
37 var script = document.createElement(
"script");
38 script.setAttribute(
"src",
"bug517224.sjs?result");
39 document.body.appendChild(script);