Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / fast / images / viewport-in-standalone-image-document.html
1 <!DOCTYPE html>
2 <html>
3     <head>
4         <script>
5             if (window.testRunner) {
6                 testRunner.dumpAsText();
7             }
8
9             function frameLoaded()
10             {
11                 var standaloneImageDocument = document.querySelector("iframe").contentDocument;
12                 var metaElement = standaloneImageDocument.querySelector("meta");
13
14                 if (metaElement && metaElement.name == "viewport" &&
15                     metaElement.content == "width=device-width, minimum-scale=0.1") {
16                     document.getElementById("log").textContent = "PASS";
17                 }
18             }
19         </script>
20     </head>
21     <body>
22         <p>
23             This tests that a standalone image document has viewport settings.
24         </p>
25         <iframe src="resources/lenna.jpg" onload="frameLoaded()"></iframe>
26         <p id="log">FAIL</p>
27     </body>
28 </html>