Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / events / resources / body-overflow-iframe.html
blob331fb7561e293ca2bb6a539155fdb0dc95728e47
1 <!DOCTYPE html>
2 <style>
3 html, body {
4 height: 100px;
5 width: 100px;
6 background: green;
7 padding: 0;
8 margin: 0;
11 div#child {
12 position: relative;
13 top : 700px;
14 width: 50px;
15 height: 300px;
16 background: red;
19 </style>
20 <body>
21 <div id='child'></div>
22 </body>
24 <script>
25 document.addEventListener("contextmenu", function(){
26 top.debug("PASS context_menu_triggered in iframe");
27 });
29 document.addEventListener("click", function(){
30 top.debug("PASS click_triggered in iframe");
31 });
33 window.onload = function(evt) {
34 document.scrollingElement.scrollTop = "1000";
35 top.debug("iframe's scroll top is " + document.scrollingElement.scrollTop);
36 top.postMessage("subframe-loaded", "*");
39 </script>