It appears that Chrome has been fixed and this is no longer a problem.
a:hover {
outline: 0;
}
a {
position: relative;
color: blue;
text-decoration: none;
transition: color 0.2s ease-in;
}
a:hover {
color: green;
}
a:after {
background: green;
content: '';
width: 100%;
height: 2px;
position: absolute;
top: 100%;
left: 0;
}
Using this CSS, hovering over links causes them to flicker and then turn invisible. If you mouse back out, they remain invisible.
Not only that, but any links in the last line of the paragraph still work fine (see the fiddle; it's crazy).
Removing the color transition on the anchor or removing the :after pseudo-element fixes the problem, but obviously that's not going to cut it.
Most interestingly, when I remove outline: 0
, everything works as expected. I've since removed the line from my project since I don't need it (I'm using normalize.css and it was in there).
Does anybody know what's going on here? outline:none
doesn't suffer from the same problems.