The CSS property text-shadow applied to a .class:hover leaves some of the shadow on the view when the mouse exits the area. URL Note: drag the mouse along the right side bar from bottom to top over the links to see the bug.
Created attachment 7665 [details] Example of bug Mouse is over the underlined link.
The easy fix is to make RenderStyle::diff() return Layout for non-euqivalent text shadows. You can refine this to check if the shadows have different radii (defined as max (|offset| + blur)), so that hover effects that only change the shadow color will remain Repaint.
Created attachment 7819 [details] Change RenderStyle::diff() to return Layout when shadow changes
Comment on attachment 7819 [details] Change RenderStyle::diff() to return Layout when shadow changes r=me
Landed in r13981.