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

Unified Diff: LayoutTests/http/tests/navigation/anchor-frames-shifting-focus.html

Issue 606023003: Don't bubble scrolls across boundary when scrolling to anchor (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Now with test. Created 6 years, 3 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
« no previous file with comments | « no previous file | LayoutTests/http/tests/navigation/anchor-frames-shifting-focus-expected.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/http/tests/navigation/anchor-frames-shifting-focus.html
diff --git a/LayoutTests/http/tests/navigation/anchor-frames-shifting-focus.html b/LayoutTests/http/tests/navigation/anchor-frames-shifting-focus.html
new file mode 100644
index 0000000000000000000000000000000000000000..c5956d39524b1a05afe433fb4cbdfb9c716b02c2
--- /dev/null
+++ b/LayoutTests/http/tests/navigation/anchor-frames-shifting-focus.html
@@ -0,0 +1,27 @@
+<!DOCTYPE html>
+<style>
+iframe {
+ position: absolute;
+ top: 50px;
+ width: 100px;
+ height: 100px;
+ border: 1px solid black;
+}
+::-webkit-scrollbar {
+ width: 0px;
+}
+</style>
+<div style='width:10px;height:2000px;background:white;position:absolute'></div>
+<iframe src='http://127.0.0.1:8000/navigation/resources/focus-shifting-frame-with-anchor.html' sandbox='allow-scripts'></iframe>
+<script>
+if (window.testRunner) {
+ testRunner.waitUntilDone();
+}
+onload = function() {
+ requestAnimationFrame(function() {
+ if (window.testRunner) {
+ testRunner.notifyDone();
+ }
+ });
+};
+</script>
« no previous file with comments | « no previous file | LayoutTests/http/tests/navigation/anchor-frames-shifting-focus-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698