5 if (window
.testRunner
) {
6 testRunner
.dumpAsText();
11 var standaloneImageDocument
= document
.querySelector("iframe").contentDocument
;
12 var metaElement
= standaloneImageDocument
.querySelector("meta");
14 if (metaElement
&& metaElement
.name
== "viewport" &&
15 metaElement
.content
== "width=device-width, minimum-scale=0.1") {
16 document
.getElementById("log").textContent
= "PASS";
23 This tests that a standalone image document has viewport settings.
25 <iframe src=
"resources/lenna.jpg" onload=
"frameLoaded()"></iframe>