Bug 70470 - [REGRESSION] text color in link always uses visited color
Summary: [REGRESSION] text color in link always uses visited color
Status: RESOLVED DUPLICATE of bug 70122
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-19 20:27 PDT by Mike Lawther
Modified: 2011-10-23 06:35 PDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Lawther 2011-10-19 20:27:50 PDT
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).
Comment 1 Antti Koivisto 2011-10-20 04:17:57 PDT
I don't see this problem in ToT. I suspect it was fixed by http://trac.webkit.org/changeset/97745
Comment 2 Mike Lawther 2011-10-20 15:18:47 PDT
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.
Comment 3 Antti Koivisto 2011-10-20 15:45:29 PDT
You should land that test case though. I don't think it is covered atm.
Comment 4 Mike Lawther 2011-10-20 17:42:28 PDT
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.
Comment 5 Antti Koivisto 2011-10-23 06:35:25 PDT

*** This bug has been marked as a duplicate of bug 70122 ***