[Webkit-unassigned] [Bug 240787] New: text-overflow: ellipsis visibility on text selection scrolling

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon May 23 00:02:40 PDT 2022


https://bugs.webkit.org/show_bug.cgi?id=240787

            Bug ID: 240787
           Summary: text-overflow: ellipsis visibility on text selection
                    scrolling
           Product: WebKit
           Version: Safari Technology Preview
          Hardware: All
               URL: https://github.com/webcompat/web-bugs/issues/104481
                OS: macOS 10.15
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: CSS
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: k_dubost at apple.com
                CC: webkit-bug-importer at group.apple.com

Created attachment 459664

  --> https://bugs.webkit.org/attachment.cgi?id=459664&action=review

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 ''text-overflow:clip''
        (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's content is shown.
        The value of text-overflow should not affect
        whether more of the element'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

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20220523/5f8cac69/attachment.htm>


More information about the webkit-unassigned mailing list