Test code: <style> .foo {color: red;} a:visited{ color: green;} </style> <a href> <div class=foo>hello</div> </a> <div class=foo>hello</div> Expected: Both 'hello's are colored red Actual: The 'hello' in the link is colored green This was introduced by http://trac.webkit.org/changeset/97638 (I've confirmed this by building r97637 and r97638 locally).
I don't see this problem in ToT. I suspect it was fixed by http://trac.webkit.org/changeset/97745
Ah cool - thanks Antti. I see now that WebKit Nightly has been stuck at r97664 for the last couple of days, which is how my bisect-builds missed the fix.
You should land that test case though. I don't think it is covered atm.
OK - I've changed the colors so that red only shows on error, and filed as https://bugs.webkit.org/show_bug.cgi?id=70568.
*** This bug has been marked as a duplicate of bug 70122 ***