<?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>169972</bug_id>
          
          <creation_ts>2017-03-22 14:39:16 -0700</creation_ts>
          <short_desc>contenteditable with text-overflow:ellipsis uses truncated text when editing begins instead of textContent</short_desc>
          <delta_ts>2022-06-08 23:53:13 -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>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=240787</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Blaze Burg">bburg</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>karlcow</cc>
    
    <cc>rniwa</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>wenson_hsieh</cc>
    
    <cc>zalan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1290212</commentid>
    <comment_count>0</comment_count>
      <attachid>305129</attachid>
    <who name="Blaze Burg">bburg</who>
    <bug_when>2017-03-22 14:39:16 -0700</bug_when>
    <thetext>Created attachment 305129
reduction

STEPS TO REPRODUCE:

1. Open test case
2. Click in contenteditable
=&gt; The ellipsis characters are editable and hidden text is not. It should disappear and be replaced with full text content (as if it were text-overflow:clip)

3. Edit the text with shift-arrow to expand selection
=&gt; selection and caret move over ellipsis as if it were editable text</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1290466</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2017-03-23 09:36:34 -0700</bug_when>
    <thetext>&lt;rdar://problem/31221128&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1873820</commentid>
    <comment_count>2</comment_count>
    <who name="Karl Dubost">karlcow</who>
    <bug_when>2022-06-02 23:21:52 -0700</bug_when>
    <thetext>This is very similar to the Selection issue in 
https://bugs.webkit.org/show_bug.cgi?id=240787
rdar://93742400


Another similar test for the different behavior.

1. Put the cursor in between letter c and d
2. Hit the right arrow key and keep pushed

* Safari: the cursor moves until it reaches the left end of the ellipsis and get stuck.
* Firefox: the cursor scrolls the text until it reaches the end, keeping the cursor at the right side of the box, and scrolling the text to show more.
* Chrome: It scrolls the text and the ellipsis as it was visible and then everything else disappears

The Firefox behavior seems to be the most sensible for the user.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>305129</attachid>
            <date>2017-03-22 14:39:16 -0700</date>
            <delta_ts>2017-03-22 14:39:16 -0700</delta_ts>
            <desc>reduction</desc>
            <filename>text-overflow-contenteditable.html</filename>
            <type>text/html</type>
            <size>251</size>
            <attacher name="Blaze Burg">bburg</attacher>
            
              <data encoding="base64">PGh0bWw+Cjxib2R5Pgo8ZGl2IHN0eWxlPSJ0ZXh0LW92ZXJmbG93OiBlbGxpcHNpczsgb3ZlcmZs
b3cteTogaGlkZGVuOyBvdmVyZmxvdy14OiBoaWRkZW47IHdpZHRoOiAxMDBweDsgaGVpZ2h0OjEw
MHB4OyB3aGl0ZS1zcGFjZTpub3dyYXAiIGNvbnRlbnRlZGl0YWJsZT4KYWJjZGVmZ2hpamtsbW5v
cHFyc3R1dnd4eXoxMjM0NTY3ODkwYWJjZGVmZ2hpamtsbW5vcHFyc3R1dnd4eXoxMjM0NTY3ODkw
CjwvZGl2Pgo8L2JvZHk+CjwvaHRtbD4=
</data>

          </attachment>
      

    </bug>

</bugzilla>