summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/css3/device-adapt/viewport-initial-width-zero.html
blob: 8fa624cf1196660c19cf357f673848b1a977a414 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<!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">
        function test() {
            if (window.testRunner) {
                testRunner.dumpAsText();
                alert(internals.viewportAsText(document, 1, 0, 200));
            }
        }
    </script>
</head>
<body onload="test();"></body>
</html>