blob: c1c75317f708fe9d598d4b8365c5d161762bbf70 [file] [log] [blame]
<!DOCTYPE>
<html>
<style>
#element-container-vw-vh {
background: green;
height: 50vh;
width: 50vw;
}
</style>
<script>
if (window.internals)
internals.runtimeFlags.overlayScrollbarsEnabled = true;
if (window.testRunner)
testRunner.dumpAsText();
if (window.eventSender)
internals.setPageScaleFactor(1.5);
function test()
{
var div = document.getElementById("element-container-vw-vh");
div.innerText = div.offsetWidth == 400 && div.offsetHeight == 300 ? "PASS" : "FAIL";
}
</script>
<body onload="test()">
<div id="element-container-vw-vh">Viewport Percentage Lengths</div>
</body>
</html>