image/test/mochitest/green-background.html

Wed, 31 Dec 2014 06:55:46 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:55:46 +0100
changeset 1
ca08bd8f51b2
permissions
-rw-r--r--

Added tag TORBROWSER_REPLICA for changeset 6474c204b198

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

mercurial