| Index: LayoutTests/fast/events/resources/body-overflow-iframe.html
|
| diff --git a/LayoutTests/fast/events/resources/body-overflow-iframe.html b/LayoutTests/fast/events/resources/body-overflow-iframe.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..1cdb66f2f7a2747015e688c6916f09d6b3dbda7c
|
| --- /dev/null
|
| +++ b/LayoutTests/fast/events/resources/body-overflow-iframe.html
|
| @@ -0,0 +1,35 @@
|
| +<!DOCTYPE html>
|
| +<style>
|
| +html, body {
|
| + height: 100px;
|
| + width: 100px;
|
| + background: green;
|
| + padding: 0;
|
| + margin: 0;
|
| +}
|
| +
|
| +div#child {
|
| + position: relative;
|
| + top : 700px;
|
| + width: 50px;
|
| + height: 300px;
|
| + background: red;
|
| +}
|
| +
|
| +</style>
|
| +<body>
|
| + <div id='child'></div>
|
| +</body>
|
| +
|
| +<script>
|
| +document.addEventListener("contextmenu", function(){
|
| + top.debug("PASS context_menu_triggered in iframe");
|
| +});
|
| +
|
| +window.onload = function(evt) {
|
| + document.body.scrollTop = "1000";
|
| + top.debug("iframe's scroll top is " + document.body.scrollTop);
|
| + top.postMessage("subframe-loaded", "*");
|
| +}
|
| +
|
| +</script>
|
|
|