blob: 99f53f5cbd0ff734abafa96b973903c25ea3406a [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<style type="text/css">
body {font:13px/1.22 arial;}
li {overflow:auto;}
</style>
<script>
if (window.testRunner)
testRunner.dumpAsText();
function checkForVerticalScrollbar() {
var actual_height = document.getElementById('list_item').clientHeight;
var scroll_height = document.getElementById('list_item').scrollHeight;
if (actual_height == scroll_height )
document.getElementById('sourceViewDiv').innerHTML=' This test: PASSED!';
}
</script>
</head>
<body onload="checkForVerticalScrollbar()">
<p> <b> Vertical scrollbar should not be created when there is no overflow. </b> </p>
<p> This test passes if the list item below, bordered in blue, has no vertical scrollbar. </p>
<ul >
<li id="list_item" style="border:1px solid blue;">
list item
</li>
</ul>
<div id='sourceViewDiv'>This test: FAILED</div>
</body>
</html>