tor-browser

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

green-background.html (620B)


      1 <!DOCTYPE HTML>
      2 <html>
      3 <head>
      4 <title>Background color wrapper for clear image tests</title>
      5 <style>
      6 body { margin: 0; }
      7 img {
      8  background-color: rgb(0, 255, 0);
      9 }
     10 </style>
     11 </head>
     12 <body>
     13 <!-- non-empty alt to avoid the broken image icon -->
     14 <img id="image1" alt=" ">
     15 <script>
     16 // Loads an externally specified image and displays it
     17 // with a green background. Intended for use with tests
     18 // involving clear images.
     19 
     20 // Use as "green-background.html?image.png".
     21 
     22 // Get the image URL.
     23 var imgURL = document.location.search.substr(1);
     24 
     25 // Load it.
     26 var img = document.images[0];
     27 img.src = imgURL;
     28 </script>
     29 </body>
     30 </html>