<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=800">
<style>
html {
font-size: 16px;
}
body {
-webkit-direction: ltr;
-webkit-writing-mode: vertical-rl;
width: 800px;
margin: 0;
overflow-y: hidden;
}
</style>
<script src="resources/autosizingTest.js"></script>
<script>
function test() {
var autosizeContainer = document.getElementById('autosize');
var forceLayout = autosizeContainer.offsetWidth;
var computedFontSize = parseInt(window.getComputedStyle(autosizeContainer).fontSize);
if (computedFontSize > 16)
document.write('PASS');
else
document.write('FAIL. Expected a font size above 16, got ' + computedFontSize);
if (window.testRunner)
testRunner.dumpAsText();
}
</script>
</head>
<body onload="test()">
<div id="autosize">
This test passes if this text is autosized. <br/>
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
</div>
</body>
</html>