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

Unified Diff: LayoutTests/compositing/overflow/resources/update-widget-positions-on-nested-frames-and-scrollers-outer-frame.html

Issue 719813002: Ensure scrolling causes updateWidgetPositions even on nested frames. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: update TestExpectations Created 6 years, 1 month 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/compositing/overflow/resources/update-widget-positions-on-nested-frames-and-scrollers-outer-frame.html
diff --git a/LayoutTests/compositing/overflow/resources/update-widget-positions-on-nested-frames-and-scrollers-outer-frame.html b/LayoutTests/compositing/overflow/resources/update-widget-positions-on-nested-frames-and-scrollers-outer-frame.html
new file mode 100644
index 0000000000000000000000000000000000000000..b7cdd5517d6e16d799c84696773ff70d2df6e774
--- /dev/null
+++ b/LayoutTests/compositing/overflow/resources/update-widget-positions-on-nested-frames-and-scrollers-outer-frame.html
@@ -0,0 +1,32 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <style>
+ iframe {
+ height: 900px;
+ }
+
+ div {
+ height: 300px;
+ overflow: auto;
+ border: 1px solid black;
+ }
+ </style>
+ <script>
+ // We expect to get a message from the inner frame to tell us when
+ // the inner frame's DOM is all set up. We need to scroll down from
+ // this frame, and then, unfortunately, transfer control back to the
+ // inner frame so that it can click on one of the select elements.
+ window.onmessage = function() {
+ document.getElementById('scrollable').scrollTop = 500;
+ document.getElementById('frame').contentWindow.postMessage('', '*');
+ };
+ </script>
+</head>
+
+<body>
+ <div id='scrollable'>
+ <iframe id='frame' src='update-widget-positions-on-nested-frames-and-scrollers-inner-frame.html'></iframe>
+ </div>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698