Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
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> |