<?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>240787</bug_id>
          
          <creation_ts>2022-05-23 00:02:40 -0700</creation_ts>
          <short_desc>text-overflow: ellipsis visibility on text selection scrolling</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>Layout and Rendering</component>
          <version>Safari Technology Preview</version>
          <rep_platform>All</rep_platform>
          <op_sys>macOS 10.15</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=169972</see_also>
          <bug_file_loc>https://github.com/webcompat/web-bugs/issues/104481</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>BrowserCompat, InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Karl Dubost">karlcow</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bfulgham</cc>
    
    <cc>miketaylr</cc>
    
    <cc>mmaxfield</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>zalan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1871081</commentid>
    <comment_count>0</comment_count>
      <attachid>459664</attachid>
    <who name="Karl Dubost">karlcow</who>
    <bug_when>2022-05-23 00:02:40 -0700</bug_when>
    <thetext>Created attachment 459664
web-bugs-104481

1. Open attachment here web-bugs-104481
2. Place the cursor in the middle of the visible string (for example, in between the 0 and 1)
3. Click and maintain and scroll toward the right side to select the numbers passed the ellipsis character

Or
3. scroll with two fingers horizontally to move the text

Expected:
The string is scrolled so the selection makes visible the overflowed text

Actual:
The string is scrolling with the ellipsis but the rest of the text stays invisible.


Notes:
* This is working on Firefox Nightly 102 and Production Release 100. 
* Chrome Canary Version 104.0.5078.0 (Official Build) canary (arm64) exhibits the same behavior than Safari. https://bugs.chromium.org/p/chromium/issues/detail?id=13563
* Reported on https://github.com/webcompat/web-bugs/issues/104481
* Spec https://drafts.csswg.org/css-overflow/#ellipsis-scrolling

	This section applies to elements with text-overflow other than &apos;&apos;text-overflow:clip&apos;&apos;
	(non-clip text-overflow)
	and overflow:scroll.

	When an element with non-clip text-overflow has overflow of scroll
	in the inline progression dimension of the text,
	and the browser provides a mechanism for scrolling
	(e.g. a scrollbar on the element,
	or a touch interface to swipe-scroll, etc.),
	there are additional implementation details that provide a better user experience:

	When an element is scrolled (e.g. by the user, DOM manipulation),
	more of the element&apos;s content is shown.
	The value of text-overflow should not affect
	whether more of the element&apos;s content is shown or not.
	If a non-clip text-overflow is set,
	then as more content is scrolled into view,
	implementations should show whatever additional content fits,
	only truncating content which would otherwise be clipped
	(or is necessary to make room for the ellipsis/string),
	until the element is scrolled far enough
	to display the edge of the content
	at which point that content should be displayed
	rather than an ellipsis/string.

and 

	While the content is being scrolled, implementations may adjust their rendering of ellipses (e.g. align to the box edge rather than line edge).





Maybe Related to 
* Bug 178395 
* Bug 178278 
* Bug 178322

And Maybe related to 
* Bug 93709</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1871082</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-05-23 00:02:51 -0700</bug_when>
    <thetext>&lt;rdar://problem/93742400&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>459664</attachid>
            <date>2022-05-23 00:02:40 -0700</date>
            <delta_ts>2022-05-23 00:02:40 -0700</delta_ts>
            <desc>web-bugs-104481</desc>
            <filename>web-bugs-104481.html</filename>
            <type>text/html</type>
            <size>405</size>
            <attacher name="Karl Dubost">karlcow</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+CjxodG1sIGxhbmc9ImVuIj4KPGhlYWQ+CiAgICA8bWV0YSBjaGFyc2V0
PSJVVEYtOCI+CiAgICA8bWV0YSBodHRwLWVxdWl2PSJYLVVBLUNvbXBhdGlibGUiIGNvbnRlbnQ9
IklFPWVkZ2UiPgogICAgPG1ldGEgbmFtZT0idmlld3BvcnQiIGNvbnRlbnQ9IndpZHRoPWRldmlj
ZS13aWR0aCwgaW5pdGlhbC1zY2FsZT0xLjAiPgogICAgPHRpdGxlPnRleHQtb3ZlcmZsb3c6IGVs
bGlwc2lzIHZpc2liaWxpdHkgb24gdGV4dCBzZWxlY3Rpb24gc2Nyb2xsaW5nPC90aXRsZT4KPC9o
ZWFkPgo8Ym9keT4KICAgIDxpbnB1dCBkaXNhYmxlZCBzdHlsZT0idGV4dC1vdmVyZmxvdzogZWxs
aXBzaXM7IiB2YWx1ZT0iMTIzNDU2Nzg5MDEyMzQ1Njc4OTAxMjM0NTY3ODkwIj4KPC9ib2R5Pgo8
L2h0bWw+
</data>

          </attachment>
      

    </bug>

</bugzilla>