summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/overflow/overflow-visible-should-ignore-scroll.html
blob: 7c493426415bfb234271a2870a74546d11a422eb (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
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
#outerbox {
    height:0;
    position:absolute;
    overflow:hidden;
}
</style>
<script type="text/javascript">
function test () {
    document.getElementById('outerbox').scrollTop=1000;
    document.getElementById('outerbox').style.overflow='visible';    
}
</script>
</head>
<body onload="test();">
<div id="outerbox">
<span style="position:absolute;">Absolute</span><span style="position:relative;left:100px;">Relative</span><br/>
This test is successful if both words in the above line are displayed properly.
</div>
</body>
</html>