tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

test_bug517224.html (1197B)


      1 <!DOCTYPE HTML>
      2 <html>
      3 <!--
      4 https://bugzilla.mozilla.org/show_bug.cgi?id=517224
      5 -->
      6 <head>
      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">
     12 
     13  p#display { background: url(bug517224.sjs?image); }
     14  p#display { background-image: none; }
     15 
     16  </style>
     17 </head>
     18 <body>
     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>
     21 <pre id="test">
     22 <script type="application/javascript">
     23 
     24 /** Test for Bug 517224 */
     25 
     26 // Test that we don't load background images for style rules that are
     27 // always overridden.
     28 
     29 // Make sure the style has been computed
     30 var bi =
     31  getComputedStyle(document.getElementById('display'), "").backgroundImage;
     32 SimpleTest.waitForExplicitFinish();
     33 window.onload = run;
     34 
     35 function run()
     36 {
     37  var script = document.createElement("script");
     38  script.setAttribute("src", "bug517224.sjs?result");
     39  document.body.appendChild(script);
     40 }
     41 
     42 </script>
     43 </pre>
     44 </body>
     45 </html>