summaryrefslogtreecommitdiff
path: root/Tools/TestWebKitAPI/Tests/mac/acceptsFirstMouse.html
blob: 3de413a5aa60e6a3693031b3e2cb897b39972847 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<!DOCTYPE html>
<html style="height: 200%;">
<head>
    <style>
        img.selectable {
            width: 100px;
            height: 100px;
            display: block;
            background-color: gray;
        }
    </style>
</head>
<body style="margin: 0;">
    <img class="selectable">
    <img class="selectable" id="target">
    <img class="selectable">
    <script>
        var target = document.getElementById("target");
        getSelection().setBaseAndExtent(target, 0, target, 1);
        scrollBy(0, 100);
    </script>
</body>
</html>