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> |