Bug 128705

Summary: Highlighting of selected text incorrect when ::first-letter applied
Product: WebKit Reporter: GregR <graeck>
Component: CSSAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Normal    
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Mac (Intel)   
OS: OS X 10.9   

Description GregR 2014-02-12 16:48:36 PST
If you have some text where the ::first-letter pseudo-element has been applied and double click the affected word, all EXCEPT the first letter is highlighted.

If you do a copy/paste with the highlighted text, you find that the whole word was copied, so it's just a highlighting error.

See it here:  http://jsfiddle.net/P3TLx/4/

Local example:

CSS
p::first-letter { text-transform: uppercase; }

HTML
<p>this is some text.</p>

If you were to double click "This" in the rendered HTML, only 'his' would highlight.
Comment 1 GregR 2014-02-12 17:11:10 PST
This issue has been around at least a year and currently appears in the latest Webkit (r163960).
Comment 2 GregR 2014-02-13 10:18:25 PST
Didn't see it yesterday, but now I see that this issue has been previously reported.

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