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

Unified Diff: LayoutTests/fast/css/visited-link-href-changed.html

Issue 537353002: Update :link/:visited style when changing href. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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/fast/css/visited-link-href-changed-expected.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/css/visited-link-href-changed.html
diff --git a/LayoutTests/fast/css/visited-link-href-changed.html b/LayoutTests/fast/css/visited-link-href-changed.html
new file mode 100644
index 0000000000000000000000000000000000000000..0d4d2cc814a88b2dc1572872b2f1df10005b9d54
--- /dev/null
+++ b/LayoutTests/fast/css/visited-link-href-changed.html
@@ -0,0 +1,23 @@
+<!DOCTYPE html>
+<style>
+a {
+ display: block;
+ width: 100px;
+ height: 100px;
+}
+
+a:visited {
+ background-color: red;
+}
+
+a:link {
+ background-color: green;
+}
+
+</style>
+<p>You should see a green square below.</p>
+<a id="link" href=""></a>
+<script>
+link.offsetTop; // force recalc
+link.href = "not-visited.html";
+</script>
« no previous file with comments | « no previous file | LayoutTests/fast/css/visited-link-href-changed-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698