summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/scrollbars/scrollbar-large-overflow-rectangle.html
blob: 94273b34535d1c39cf8081c74d1c6edc59812e91 (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
33
34
35
36
37
38
39
40
41
<!DOCTYPE html>
<html>
    <head>
    <title>absolute positioned element with large negative top value inside tall relative positioned box does not render scrollbars</title>
        <style>
            body, p{
              margin:0;
            }
            div{
                position: relative;
                height:3000px;
            }
            span{
                position: absolute;
                top:-3355400000px;
            }
        </style>
        <script>
            if (window.testRunner) {
                testRunner.dumpAsText();
            }
            
            function test() {
              var height = document.body.scrollHeight;
              if (height == 3000)
                document.getElementById("result").innerHTML = "PASS";
              else
                document.getElementById("result").innerHTML = "<p style='color:red'>FAIL document.body.scrollHeight = " + height +"</p>";
              }
        </script> 
    </head>
    
    <body onload="test()">
    <div>
      <p> This page should be scrollable </p>
      <p id="result"> </p>
      <span style="visibility:hidden">filler <!--abs pos with very large negative top value--></span>
    </div>
   
    </body>
</html>