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

Unified Diff: third_party/WebKit/LayoutTests/fast/loader/scroll-anchor-cleared-after-load-when-hidden.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-when-hidden.html
diff --git a/third_party/WebKit/LayoutTests/fast/loader/scroll-anchor-cleared-after-load-when-hidden.html b/third_party/WebKit/LayoutTests/fast/loader/scroll-anchor-cleared-after-load-when-hidden.html
deleted file mode 100644
index d9c28d27d22ff99086da8f721c001540b29018cd..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/fast/loader/scroll-anchor-cleared-after-load-when-hidden.html
+++ /dev/null
@@ -1,47 +0,0 @@
-<!DOCTYPE html>
- <script src="../../resources/js-test.js"></script>
- <script src="../../resources/run-after-layout-and-paint.js"></script>
- <style>
- #anchor {
- display: none;
- position: absolute;
- width: 60px;
- height: 30px;
- background-color: #eee;
- font: bold 10pt monospace;
- padding: 10px;
- left: 50vw;
- top: 200vh;
-}
-
-</style>
-<a id="anchor" name="foo">ANCHOR</a>
-<script>
-
-description("Tests that the scroll position does not stick to the anchor if " +
- "it becomes visible after the page has finished loading.");
-
-var jsTestIsAsync = true;
-var anchor = document.querySelector("#anchor");
-
-onhashchange = function() {
- if (location.hash != '#foo')
- return;
-
- anchor.style.display = 'block';
- runAfterLayoutAndPaint(function() {
- shouldBe("scrollY", "0");
-
- location.hash = "#";
- anchor.style.display = 'none';
- finishJSTest();
- });
-};
-
-onload = function() {
- runAfterLayoutAndPaint(function() {
- location.hash = "#foo";
- });
-};
-
-</script>

Powered by Google App Engine
This is Rietveld 408576698