summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/css3/device-adapt/viewport-initial-width-zero.html
blob: 63c32c417655280d4a5e026b3072858d873c1c2c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<!DOCTYPE html>
<html>
<head>
    <title>Use initial height for auto height if initial width is zero</title>
    <link rel="help" href="http://www.w3.org/TR/css-device-adapt/#constraining-viewport-descriptor-values">
    <style type="text/css">
        @viewport {
            width: 100px;
            height: auto;
        }
    </style>
    <script type="text/javascript">
        if (window.testRunner)
            testRunner.injectStyleSheet("@viewport { width: extend-to-zoom 980px; min-zoom: 0.25; max-zoom: 5; height: auto; zoom: auto; user-zoom: zoom; orientation: auto }", true);

        function test() {
            if (window.testRunner) {
                testRunner.dumpAsText();
                alert(internals.viewportAsText(document, 1, 0, 200));
            }
        }
    </script>
</head>
<body onload="test();"></body>
</html>