Allow testing of plug-ins that handle wheel events.
[WebKit-https.git] / LayoutTests / platform / mac-wk2 / tiled-drawing / scrolling / non-fast-region / top-content-inset.html
1 <!DOCTYPE html>
2
3 <html>
4 <head>
5     <style>
6         .box {
7             height: 100px;
8             width: 100px;
9             margin: 10px 20px;
10             background-color: blue;
11             box-shadow: 0 0 10px black;
12         }
13         
14     </style>
15     <script src="resources/wheel-handler-region-helper.js"></script>
16     <script>
17         if (window.testRunner)
18             testRunner.waitUntilDone();
19
20         if (window.internals)
21             internals.setTopContentInset(60);
22
23         function doTest()
24         {
25             window.setTimeout(function() {
26                 // Scroll to test the mapping from document to view coords.
27                 document.body.scrollTop = 195;
28                 dumpRegion();
29                 if (window.testRunner)
30                     testRunner.notifyDone();
31             }, 0)
32         }
33
34         window.addEventListener('load', doTest);
35     </script>
36 </head>
37 <body>
38
39 <p>Wheel event rect:</p>
40 <div class="box" onmousewheel="(void)0"></div>
41
42 <pre id="output"></pre>
43
44 </body>
45 </html>