Revision 859e67ce666775ccd471e4693d85d4e90989e270 authored by Bernie Thompson on 29 March 2018, 17:39:39 UTC, committed by Chromium WPT Sync on 29 March 2018, 17:39:39 UTC
BUG=chromium:825100
TEST=None

This reverts commit f2d2fe87028de36a489f7db3f5fb28da2e9d9b2b.

Change-Id: I01e5962e0b52ad63feca36513db19253a5ade530
1 parent a149250
Raw File
viewport-unscaled-scale-iframe.html
<!doctype html>
<html>
    <head>
        <title>Viewport: Unscaled scale iframe</title>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width">
        <script src="/resources/testharness.js"></script>
        <script src="/resources/testharnessreport.js"></script>
        <script src="viewport_support.js"></script>
        <style>
            iframe {
              width: 200px;
              height: 300px;
            }
        </style>
    </head>
    <body>
    <h1>Viewport: Unscaled scale iframe</h1>
    <h4>Test Description: This test checks that the default value for scale inside an iframe is 1.</h4>
    <iframe></iframe>
    <div id="complete-notice">
        <p>iframe's window.visualViewport.scale is <span id="view-scale-log"></span>.</p>
    </div>
    <div id="log"></div>
    </body>
    <script>
        test(function() {
              assert_equals(frames[0].window.visualViewport.scale, 1);
            }, "iframe's visualViewport.scale default value.");

        document.getElementById("view-scale-log").innerText = frames[0].window.visualViewport.scale;
    </script>
</html>
back to top