I have been working on testing this code snippet in Firefox 49.0 on Linux Mint:
a{
font-size:50px;
color:gray;
font-weight:1000;
transition:color 1s;
}
a:hover{
color:black;
}
a:visited{
color:lightgray;
}
<a href="">VISITED LINK</a><br>
<a href="https://google.com/randomtext">LNK NOT VISITED</a>
However, I have noticed that in Firefox, the :hover rule seems to be applied first to the visited links when hovered over, followed by the :visited rule, resulting in flickering behavior while transitioning between these states.
So far, I have been unable to find a solution to this issue.
Edit: Interestingly enough, Chrome displays the desired behavior without any issues.