Bug 37669

Summary: REGRESSION: :visited doesn't work properly with pseudo elements and chained selectors
Product: WebKit Reporter: Dave Hyatt <hyatt>
Component: CSSAssignee: Dave Hyatt <hyatt>
Status: RESOLVED FIXED    
Severity: Normal    
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: OS X 10.5   
Attachments:
Description Flags
Patch andersca: review+, hyatt: commit-queue-

Description Dave Hyatt 2010-04-15 13:41:12 PDT
Testcase:

<style>
span { display: block }
a { display:block }

:visited > span:first-letter {
  color:orange
}
</style>
<body>
<p>The H in the word hello below should be orange for a visited link.</p>

<a href=""><span>Hello</span></a>

Bug report:

This happens in the latest nightly of Firefox also.

I filed https://bugzilla.mozilla.org/show_bug.cgi?id=559612 for them.
Comment 1 Dave Hyatt 2010-04-15 13:44:43 PDT
Created attachment 53469 [details]
Patch
Comment 2 Anders Carlsson 2010-04-15 13:49:13 PDT
Comment on attachment 53469 [details]
Patch

r=me
Comment 3 Dave Hyatt 2010-04-15 13:56:33 PDT
Fixed in r57671.  Once computedStyle can return pseudo elements I will land a test.