downscale-2b.html 1.2 KB

1234567891011121314151617181920212223242526272829303132
  1. <!DOCTYPE html>
  2. <!-- Any copyright is dedicated to the Public Domain.
  3. - http://creativecommons.org/publicdomain/zero/1.0/ -->
  4. <html reftest-zoom="0.9" class="reftest-wait">
  5. <head>
  6. <script>
  7. function snapshot() {
  8. document.documentElement.removeAttribute('class');
  9. }
  10. </script>
  11. </head>
  12. <!-- NOTE: Using setTimeout to wait for high-quality downscaled version of
  13. image to be ready, because there's nothing better we can do. If we fix
  14. Bug 1006883, we can do away with this setTimeout.
  15. For now, the setTimeout is just here to increase the likelihood that we
  16. actually test the high-quality downscaled version of the image. If the
  17. setTimeout happens to fire before the high-quality downscaled rendering is
  18. ready, then this the test will pass without testing what it's trying to
  19. test, which is fine as long as that's rare. -->
  20. <body style="margin: 0px" onload="setTimeout(snapshot, 50)">
  21. <script>
  22. var args = location.search.substring(1).split(',');
  23. var image = document.createElement('img');
  24. image.width = args[0];
  25. image.height = args[1];
  26. image.src = 'black-border-' + args[2] + '.png';
  27. document.body.appendChild(image);
  28. </script>
  29. </body>
  30. </html>