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

Unified Diff: third_party/WebKit/LayoutTests/fast/loader/scroll-anchor-cleared-after-load.html

Issue 2474813002: Clamping shouldn't clear the fragment anchor. (Closed)
Patch Set: address review comments Created 4 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: third_party/WebKit/LayoutTests/fast/loader/scroll-anchor-cleared-after-load.html
diff --git a/third_party/WebKit/LayoutTests/fast/loader/scroll-anchor-cleared-after-load.html b/third_party/WebKit/LayoutTests/fast/loader/scroll-anchor-cleared-after-load.html
deleted file mode 100644
index 73688580484cba1d310e2ecfda8675adbc3c41f1..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/fast/loader/scroll-anchor-cleared-after-load.html
+++ /dev/null
@@ -1,44 +0,0 @@
-<!DOCTYPE html>
-<script src="../../resources/js-test.js"></script>
-<script src="../../resources/run-after-layout-and-paint.js"></script>
-<style>
-
-#anchor {
- display: block;
- position: absolute;
- width: 60px;
- height: 30px;
- background-color: #eee;
- font: bold 10pt monospace;
- padding: 10px;
- left: 200px;
- top: 150px;
-}
-
-</style>
-<a id="anchor" name="foo">ANCHOR</a>
-<script>
-
-description("Tests that the scroll position does not stick to the anchor if " +
- "it moves after the page has finished loading.");
-
-var jsTestIsAsync = true;
-var anchor = document.querySelector("#anchor");
-
-onload = function() {
- runAfterLayoutAndPaint(function() {
- location.hash = "#foo";
-
- runAfterLayoutAndPaint(function() {
- anchor.style.top = "1000px";
-
- shouldBe("scrollY", "0");
-
- location.hash = "#";
- anchor.style.top = "";
- finishJSTest();
- });
- });
-};
-
-</script>

Powered by Google App Engine
This is Rietveld 408576698