<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>128705</bug_id>
          
          <creation_ts>2014-02-12 16:48:36 -0800</creation_ts>
          <short_desc>Highlighting of selected text incorrect when ::first-letter applied</short_desc>
          <delta_ts>2014-02-13 10:18:25 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>CSS</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Mac (Intel)</rep_platform>
          <op_sys>OS X 10.9</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>6185</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="GregR">graeck</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>980084</commentid>
    <comment_count>0</comment_count>
    <who name="GregR">graeck</who>
    <bug_when>2014-02-12 16:48:36 -0800</bug_when>
    <thetext>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&apos;s just a highlighting error.

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

Local example:

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

HTML
&lt;p&gt;this is some text.&lt;/p&gt;

If you were to double click &quot;This&quot; in the rendered HTML, only &apos;his&apos; would highlight.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>980091</commentid>
    <comment_count>1</comment_count>
    <who name="GregR">graeck</who>
    <bug_when>2014-02-12 17:11:10 -0800</bug_when>
    <thetext>This issue has been around at least a year and currently appears in the latest Webkit (r163960).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>980348</commentid>
    <comment_count>2</comment_count>
    <who name="GregR">graeck</who>
    <bug_when>2014-02-13 10:18:25 -0800</bug_when>
    <thetext>Didn&apos;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 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>