[Webkit-unassigned] [Bug 249974] New: Incorrect ellipsis placement with text-align: center

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Dec 31 14:06:11 PST 2022


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

            Bug ID: 249974
           Summary: Incorrect ellipsis placement with text-align: center
           Product: WebKit
           Version: WebKit Local Build
          Hardware: Mac (Apple Silicon)
                OS: macOS 13
            Status: NEW
          Severity: Minor
          Priority: P2
         Component: Layout and Rendering
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: michael at nuttnet.net
                CC: bfulgham at webkit.org, simon.fraser at apple.com,
                    zalan at apple.com

Created attachment 464272

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

screenshot of line clamp issue

When using -webkit-line-clamp and text-align: center, in certain cases the ellipses are drawn incorrectly aligned. Reproduction:

https://codepen.io/michaelnutt/pen/gOjrEre

(see attachment for screenshot of the above on my local build)

>From some debugging, I notice that the ellipsis is drawn in the spot where it would be if the text were text-align: left.

I'm not very familiar with the text layout code so this may be incorrect, but it seems as if it is not taking into account the offset created by text-align.

-- 
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/20221231/4bfa16e7/attachment.htm>


More information about the webkit-unassigned mailing list