Chromium Code Reviews

Unified Diff: LayoutTests/http/tests/navigation/anchor-frames-shifting-focus-expected.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.
Jump to:
View side-by-side diff with in-line comments
Index: LayoutTests/http/tests/navigation/anchor-frames-shifting-focus-expected.html
diff --git a/LayoutTests/http/tests/navigation/anchor-frames-shifting-focus-expected.html b/LayoutTests/http/tests/navigation/anchor-frames-shifting-focus-expected.html
new file mode 100644
index 0000000000000000000000000000000000000000..ce72c53683c4e646c702890110bcae5e948c2822
--- /dev/null
+++ b/LayoutTests/http/tests/navigation/anchor-frames-shifting-focus-expected.html
@@ -0,0 +1,26 @@
+<!DOCTYPE html>
+<style>
+iframe {
+ position: absolute;
+ top: 50px;
+ width: 100px;
+ height: 100px;
+ border: 1px solid black;
+}
+::-webkit-scrollbar {
+ width: 0px;
+}
+</style>
+<iframe src='http://127.0.0.1:8000/navigation/resources/focus-shifting-frame-with-anchor.html'></iframe>
+<script>
+if (window.testRunner) {
+ testRunner.waitUntilDone();
+}
+onload = function() {
+ requestAnimationFrame(function() {
+ if (window.testRunner) {
+ testRunner.notifyDone();
+ }
+ });
+};
+</script>

Powered by Google App Engine