<!DOCTYPE html>
<html>
<head>
<script>
if (window.testRunner) {
testRunner.dumpAsText();
}
function frameLoaded()
{
var standaloneImageDocument = document.querySelector("iframe").contentDocument;
var metaElement = standaloneImageDocument.querySelector("meta");
if (metaElement && metaElement.name == "viewport" &&
metaElement.content == "width=device-width, minimum-scale=0.1") {
document.getElementById("log").textContent = "PASS";
}
}
</script>
</head>
<body>
<p>
This tests that a standalone image document has viewport settings.
</p>
<iframe src="resources/gracehopper.jpg" onload="frameLoaded()"></iframe>
<p id="log">FAIL</p>
</body>
</html>