summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/forms/textarea/textarea-scrollbar-height.html
blob: 99f53f5cbd0ff734abafa96b973903c25ea3406a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<!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>