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

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: fix layout test 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..331fb7561e293ca2bb6a539155fdb0dc95728e47
--- /dev/null
+++ b/LayoutTests/fast/events/resources/body-overflow-iframe.html
@@ -0,0 +1,39 @@
+<!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");
+});
+
+document.addEventListener("click", function(){
+ top.debug("PASS click_triggered in iframe");
+});
+
+window.onload = function(evt) {
+ document.scrollingElement.scrollTop = "1000";
+ top.debug("iframe's scroll top is " + document.scrollingElement.scrollTop);
+ top.postMessage("subframe-loaded", "*");
+}
+
+</script>
« no previous file with comments | « LayoutTests/fast/events/event-hit-testing-fallback-to-iframe-expected.txt ('k') | Source/core/input/EventHandler.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698