downscale-8px.html 750 B

1234567891011121314151617181920212223242526272829
  1. <!DOCTYPE HTML>
  2. <html class="reftest-wait">
  3. <head>
  4. <title>Image reftest wrapper</title>
  5. <style type="text/css">
  6. #image1 { background-color: rgb(10, 250, 100); }
  7. </style>
  8. <script>
  9. // The image is loaded async after the page loads.
  10. // Wait for it to finish loading.
  11. function onImageLoad() {
  12. document.documentElement.removeAttribute("class");
  13. };
  14. </script>
  15. </head>
  16. <body>
  17. <!-- non-empty alt to avoid the broken image icon -->
  18. <img width="8px" id="image1" alt=" ">
  19. <script>
  20. // Use as "wrapper.html?image.png"
  21. var imgURL = document.location.search.substr(1);
  22. document.images[0].onload = onImageLoad;
  23. document.images[0].onerror = onImageLoad;
  24. document.images[0].alt = "";
  25. document.images[0].src = imgURL;
  26. </script>
  27. </body>
  28. </html>