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

Unified Diff: LayoutTests/http/tests/navigation/resources/focus-shifting-frame-with-anchor.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
Index: LayoutTests/http/tests/navigation/resources/focus-shifting-frame-with-anchor.html
diff --git a/LayoutTests/http/tests/navigation/resources/focus-shifting-frame-with-anchor.html b/LayoutTests/http/tests/navigation/resources/focus-shifting-frame-with-anchor.html
new file mode 100644
index 0000000000000000000000000000000000000000..1b194f6589fded21e4fa4af8f4087aac83848d33
--- /dev/null
+++ b/LayoutTests/http/tests/navigation/resources/focus-shifting-frame-with-anchor.html
@@ -0,0 +1,12 @@
+<!DOCTYPE html>
+<a href='#'>anchor</a>
+<a id='dummy' href='dummy'>dummy</a>
+<div style='width:10px;height:2000px;background:white'></div>
+<script>
+onload = function() {
+ location.href = '#';
+ requestAnimationFrame(function() {
+ document.getElementById('dummy').focus();
+ });
+}
+</script>
« no previous file with comments | « LayoutTests/http/tests/navigation/anchor-frames-shifting-focus-expected.html ('k') | Source/core/frame/FrameView.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698