Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(490)

Unified Diff: LayoutTests/fast/events/resources/body-overflow-iframe.html

Issue 1289753006: Fallback to root layer if hit-testing does not hit anything in iframe (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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>

Powered by Google App Engine
This is Rietveld 408576698