1. visit http://dev.w3.org/html5/markup/figcaption.html#figcaption
2. click and follow the "Phrasing content" hyperlink
3. go back to http://dev.w3.org/html5/markup/figcaption.html#figcaption
You should notice that the letter "P" is rendered in the default, non-visited-link color, while the remaining "hrasing content" text shows up as expected in visited-link color.
relevant source excerpt:
<span><a href="terminology.html#phrasing-content">phrasing content</a></span>
accompanying CSS excerpt:
I get expected behavior (all of the hyperlink text in visited-link color) in stable Safari and in all other browsers tested (Minefield, latest Chrome dev-channel for OSX).
Created attachment 53375 [details]
This fixes the bug.
I need to write a test case.
I noticed a couple of other bugs with pseudo elements and :visited though besides this one. I'll fix those in a followup.
I'd like to write a good test for this, but
blocks me. I'm going to land testless and then see if I can't get 24021 ferried into the tree (the patch in the bug looks good to me). After that lands, pseudo element tests will be possible.
Created attachment 53451 [details]
Comment on attachment 53451 [details]
Fixed in r57657.
This has caused bug 38891.