1 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
4 <style type=
"text/css">
5 body
{font:13px/1.22 arial
;}
10 if (window
.testRunner
)
11 testRunner
.dumpAsText();
13 function checkForVerticalScrollbar() {
14 var actual_height
= document
.getElementById('list_item').clientHeight
;
15 var scroll_height
= document
.getElementById('list_item').scrollHeight
;
16 if (actual_height
== scroll_height
)
17 document
.getElementById('sourceViewDiv').innerHTML
=' This test: PASSED!';
22 <body onload=
"checkForVerticalScrollbar()">
23 <p> <b> Vertical scrollbar should not be created when there is no overflow.
</b> </p>
24 <p> This test passes if the list item below, bordered in blue, has no vertical scrollbar.
</p>
26 <li id=
"list_item" style=
"border:1px solid blue;">
30 <div id='sourceViewDiv'
>This test: FAILED
</div>