2 <script src=
"../../../resources/js-test.js"></script>
4 <iframe id=
"frame" style=
"width: 80px;"></iframe>
6 var jsTestIsAsync
= true;
7 var iframe
= document
.getElementById('frame');
8 var iframeDoc
= iframe
.contentWindow
.document
;
10 iframeDoc
.body
.innerHTML
= '<img id="srcset" srcset="resources/blue_rect.jpg 90w, resources/image-set-4x.png 120w">';
12 xhtmlDoc
= document
.implementation
.createDocument("http://www.w3.org/1999/xhtml", "xhtml", null);
13 xhtmlDoc
.documentElement
.appendChild(iframeDoc
.body
);
14 nullDoc
= document
.implementation
.createDocument("", null);
15 nullDoc
.adoptNode(xhtmlDoc
.documentElement
);
18 setTimeout(function() {
19 iframe
.style
.width
= '100px';
21 setTimeout(finishJSTest
, 500);