0013973806040721befe55b173c72174260d849a
[WebKit-https.git] / LayoutTests / platform / mac-wk2 / tiled-drawing / scrolling / non-fast-region / top-content-inset-header.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             internals.setHeaderHeight(23);
23         }
24
25         function doTest()
26         {
27             window.setTimeout(function() {
28                 // Scroll to test the mapping from document to view coords.
29                 document.body.scrollTop = 195;
30                 dumpRegion();
31                 if (window.testRunner)
32                     testRunner.notifyDone();
33             }, 0)
34         }
35
36         window.addEventListener('load', doTest);
37     </script>
38 </head>
39 <body>
40
41 <p>Wheel event rect:</p>
42 <div class="box" onmousewheel="(void)0"></div>
43
44 <pre id="output"></pre>
45
46 </body>
47 </html>