image/test/reftest/pngsuite-transparency/wrapper.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/image/test/reftest/pngsuite-transparency/wrapper.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,27 @@
     1.4 +<!DOCTYPE HTML>
     1.5 +<html class="reftest-wait">
     1.6 +<head>
     1.7 +<title>Image reftest wrapper</title>
     1.8 +<style type="text/css">
     1.9 +  #image1 { background-color: rgb(10, 100, 250); }
    1.10 +</style>
    1.11 +<script>
    1.12 +  // The image is loaded async after the page loads
    1.13 +  // wait for it to finish loading
    1.14 +  function onImageLoad() { 
    1.15 +    document.documentElement.removeAttribute("class");
    1.16 +  };
    1.17 +</script>
    1.18 +</head>
    1.19 +<body>
    1.20 +<img id="image1">
    1.21 +<script>
    1.22 +  // Use as "wrapper.html?image.png
    1.23 +  var imgURL = document.location.search.substr(1);
    1.24 +  document.images[0].onload = onImageLoad;
    1.25 +  document.images[0].onerror = onImageLoad;
    1.26 +  document.images[0].src = imgURL;
    1.27 +</script>
    1.28 +</body>
    1.29 +</html>
    1.30 +

mercurial