Created attachment 464272 [details] 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.
Created attachment 464273 [details] ellipsis-align-possible-fix This patch appears to correct the issue for me, although I'm not sure if it's the correct fix or not.
<rdar://problem/103792912>
Created attachment 464331 [details] Patch
Created attachment 464334 [details] Patch
Created attachment 464350 [details] [fast-cq]Patch
Committed 258491@main (c672a5df57fc): <https://commits.webkit.org/258491@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 464350 [details].