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

Side by Side 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <style>
3 a {
4 display: block;
5 width: 100px;
6 height: 100px;
7 }
8
9 a:visited {
10 background-color: red;
11 }
12
13 a:link {
14 background-color: green;
15 }
16
17 </style>
18 <p>You should see a green square below.</p>
19 <a id="link" href=""></a>
20 <script>
21 link.offsetTop; // force recalc
22 link.href = "not-visited.html";
23 </script>
OLDNEW
« 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