summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/overflow/position-relative.html
blob: f5fd161504d5f9f1de7950f07383ed591c06c77d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<html>
<head>
    <title>Test for http://bugs.webkit.org/show_bug.cgi?id=10692</title>
</head>
<body>
    <div style="position: relative; left: -100px;">
        <div id="target" style="position: relative; left: 100px; width: 100px; overflow: auto; background-color: red;">
            <div style="width: 100px; height: 100px; background-color: green;"></div>
        </div>
    </div>
    <script>
        document.getElementById("target").scrollLeft = "100";
    </script>
</body>
</html>