summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/css3/device-adapt/viewport-initial-height-zero.html
blob: 1e482f5388a5801ef4ea4a9c302a1ad9a821c869 (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 width for auto width if initial height 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: auto;
            height: 100px;
        }
    </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, 200, 0));
            }
        }
    </script>
</head>
<body onload="test();"></body>
</html>