Bug 128705 - Highlighting of selected text incorrect when ::first-letter applied
Summary: Highlighting of selected text incorrect when ::first-letter applied
Status: RESOLVED DUPLICATE of bug 6185
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 528+ (Nightly build)
Hardware: Mac (Intel) OS X 10.9
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-12 16:48 PST by GregR
Modified: 2014-02-13 10:18 PST (History)
0 users

See Also:


Attachments

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