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

Side by Side 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: remove "active" hack for wheel event hit-test & using document.documentElement.scrollTop for scroll… 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 unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <style>
3 html, body {
4 height: 100px;
5 width: 100px;
6 background: green;
7 padding: 0;
8 margin: 0;
9 }
10
11 div#child {
12 position: relative;
13 top : 700px;
14 width: 50px;
15 height: 300px;
16 background: red;
17 }
18
19 </style>
20 <body>
21 <div id='child'></div>
22 </body>
23
24 <script>
25 document.addEventListener("contextmenu", function(){
26 top.debug("PASS context_menu_triggered in iframe");
27 });
28
29 document.addEventListener("click", function(){
30 top.debug("PASS click_triggered in iframe");
31 });
32
33 window.onload = function(evt) {
34 document.documentElement.scrollTop = "1000";
Rick Byers 2015/08/20 19:28:22 nit: please use document.scrollingElement in case
Yufeng Shen (Slow to review) 2015/08/20 20:28:18 Done.
35 top.debug("iframe's scroll top is " + document.documentElement.scrollTop);
36 top.postMessage("subframe-loaded", "*");
37 }
38
39 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698