Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / events / touch / resources / touch-inside-iframe-scrolled2.html
blobef80f6d1a7dd2159640e9040f9cebc1e73fb08c5
1 <html>
2 <body onload="parent.runTest()">
3 <style type='text/css'>
4 #container {
5 height:1000px;
6 width:1000px
8 #mydiv {
9 top:300px;
10 left:100px;
11 width:100px;
12 height:100px;
13 position:absolute;
14 background-color:blue;
16 </style>
17 <div id='container'>
18 <div id='mydiv'></div>
19 </div>
20 <script type='text/javascript'>
21 // Scroll so mydiv is at the top left
22 window.scrollTo(100,300);
24 document.getElementById('mydiv').addEventListener('touchstart', function(event) {
25 parent.testComplete(true, event);
26 event.stopPropagation();
27 }, false);
28 </script>
29 </body>
30 </html>