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