2 <html class=
"reftest-wait">
4 <title>Image reftest wrapper
</title>
5 <style type=
"text/css">
6 #image1 { background-color: rgb
(10, 100, 250); }
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");
19 // Use as "wrapper.html?image.png"
20 var imgURL
= document
.location
.search
.substr(1);
21 document
.images
[0].onload
= onImageLoad
;
22 document
.images
[0].onerror
= onImageLoad
;
23 document
.images
[0].src
= imgURL
;