summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/images/image-map-zoom.html
blob: 6592132b0a249e6d807b68fb0c30511bfeb07fe3 (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
42
43
44
<html>

<head>

<script>

function runTest()
{
    if (!window.eventSender)
        return;

    testRunner.dumpAsText();

    eventSender.mouseMoveTo(340, 140);
    eventSender.mouseDown();
    eventSender.mouseUp();
}

function setResult(message)
{
    document.getElementById('result').firstChild.data = message;
}

</script>

</head>

<body onload="runTest()" style="margin:0; zoom: 2" onclick="setResult('FAILURE')">

<map name="navmap">
<area shape=rect coords="30,30,70,70" href onclick="setResult('SUCCESS'); event.stopPropagation(); event.preventDefault();"> 
</map>

<img style="position: relative; left: 100px" border="20" width="100" height="100" usemap="#navmap" ismap>

<hr>

<p>This tests that client side image maps still work when zooming is in effect.</p>

<div id="result">TEST NOT RUN</div>

</body>

</html>