Bug 263959

Summary: Safari cut parts of text when compositing text with negative letter-spacing
Product: WebKit Reporter: mic.gallego
Component: TextAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: ahmad.saleem792, fantasai.bugs, karlcow, mmaxfield, simon.fraser, vitor.roriz, webkit-bug-importer, zalan
Priority: P2 Keywords: BrowserCompat, InRadar
Version: Safari 17   
Hardware: All   
OS: All   
See Also: https://bugs.webkit.org/show_bug.cgi?id=156550
Attachments:
Description Flags
cutting text
none
rendering in safari, firefox, chrome none

Description mic.gallego 2023-10-31 02:15:27 PDT
Created attachment 468423 [details]
cutting text

Hi,

When compositing text that has a negative letter-spacing, part of the text is truncated (you can see the W letter for instance in this example): https://codepen.io/bakura10/pen/GRzZaMo

It looks like a similar issue was raised a few years ago and marked as fixed (https://bugs.webkit.org/show_bug.cgi?id=156550) so this might be a regression as it's no longer fixed anymore :).

Firefox and Chrome do not exhibit any cutting. The issue is reproducing at least on Safari 16 and 17, I did not try older versions.

Thanks!
Comment 1 Ahmad Saleem 2023-10-31 05:25:00 PDT
I am able to reproduce this bug in WebKit ToT (270003@main).
Comment 2 Alexey Proskuryakov 2023-11-01 10:15:40 PDT
Both the test landed for bug 156550 and the original issue that motivated that fix still behave correctly, so I think that this is a variation of that problem, not a recurrence.
Comment 3 Radar WebKit Bug Importer 2023-11-07 01:16:13 PST
<rdar://problem/118043653>
Comment 4 Karl Dubost 2023-11-20 03:58:36 PST
Created attachment 468672 [details]
rendering in safari, firefox, chrome