Bug 37669 - REGRESSION: :visited doesn't work properly with pseudo elements and chained selectors
Summary: REGRESSION: :visited doesn't work properly with pseudo elements and chained s...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC OS X 10.5
: P2 Normal
Assignee: Dave Hyatt
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-15 13:41 PDT by Dave Hyatt
Modified: 2010-04-15 13:56 PDT (History)
0 users

See Also:


Attachments
Patch (12.52 KB, patch)
2010-04-15 13:44 PDT, Dave Hyatt
andersca: review+
hyatt: commit-queue-
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.