<?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>43830</bug_id>
          
          <creation_ts>2010-08-10 22:53:29 -0700</creation_ts>
          <short_desc>Wrong selection offset for a node with :first-letter style</short_desc>
          <delta_ts>2026-04-07 12:47:04 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>HTML Editing</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=219087</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>58911</blocked>
    
    <blocked>6185</blocked>
    
    <blocked>41514</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Kent Tamura">tkent</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>ap</cc>
    
    <cc>bfulgham</cc>
    
    <cc>joshua.lock</cc>
    
    <cc>mickael.menu</cc>
    
    <cc>rniwa</cc>
    
    <cc>wenson_hsieh</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>263040</commentid>
    <comment_count>0</comment_count>
      <attachid>64074</attachid>
    <who name="Kent Tamura">tkent</who>
    <bug_when>2010-08-10 22:53:29 -0700</bug_when>
    <thetext>Created attachment 64074
A demo HTML

See the attached HTML.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1892042</commentid>
    <comment_count>1</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2022-08-17 13:59:40 -0700</bug_when>
    <thetext>I am able to reproduce this bug in Safari 15.6 on macOS 12.5 using attached test case and it shows following across browsers:

*** Safari 15.6 on macOS 12.5 ***

Actual extentOffset is [4]

*** Firefox Nightly 105 ***

Actual extentOffset is [undefined]

*** Chrome Canary 106 ***

Actual extentOffset is [5]

_____

As per test case, only Chrome Canary shows correct / expected result. Just wanted to update latest testing results. Thanks!</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>64074</attachid>
            <date>2010-08-10 22:53:29 -0700</date>
            <delta_ts>2010-08-10 22:53:29 -0700</delta_ts>
            <desc>A demo HTML</desc>
            <filename>first-letter-selection-offset.html</filename>
            <type>text/html</type>
            <size>511</size>
            <attacher name="Kent Tamura">tkent</attacher>
            
              <data encoding="base64">PGh0bWw+CjxzdHlsZT4KI2QxOmZpcnN0LWxldHRlciB7CiAgZm9udC1zaXplOiB4LWxhcmdlOwog
IGNvbG9yOiBncmVlbjsKfQpib2R5IHsKICB6b29tOiAyLjA7Cn0KPC9zdHlsZT4KPGJvZHk+Cjxk
aXYgY29udGVudEVkaXRhYmxlPXRydWUgaWQ9ZDE+QXBwbGU8L2Rpdj4KPGhyPgo8cD5kb2N1bWVu
dC5nZXRTZWxlY3Rpb24oKS5leHRlbnRPZmZzZXQgc2hvdWxkIGJlIDUgKGxlbmd0aCBvZiAiQXBw
bGUiKS48L3A+CjxkaXYgaWQ9Y29uc29sZT48L2Rpdj4KPHNjcmlwdD4KdmFyIGQgPSBkb2N1bWVu
dC5nZXRFbGVtZW50QnlJZCgnZDEnKQpkLmZvY3VzKCk7CmRvY3VtZW50LmV4ZWNDb21tYW5kKCdz
ZWxlY3RBbGwnKTsKCnZhciBzID0gZG9jdW1lbnQuZ2V0U2VsZWN0aW9uKCkKZG9jdW1lbnQuZ2V0
RWxlbWVudEJ5SWQoJ2NvbnNvbGUnKS5pbm5lckhUTUwgPSAnQWN0dWFsIGV4dGVudE9mZnNldCBp
cyBbJyArIHMuZXh0ZW50T2Zmc2V0ICsgJ10nOwo8L3NjcmlwdD4KPC9ib2R5Pgo8L2h0bWw+Cg==
</data>

          </attachment>
      

    </bug>

</bugzilla>