Bug 263959 - Safari cut parts of text when compositing text with negative letter-spacing
Summary: Safari cut parts of text when compositing text with negative letter-spacing
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Text (show other bugs)
Version: Safari 17
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords: BrowserCompat, InRadar
Depends on:
Blocks:
 
Reported: 2023-10-31 02:15 PDT by mic.gallego
Modified: 2023-11-20 03:58 PST (History)
8 users (show)

See Also:


Attachments
cutting text (16.58 KB, image/png)
2023-10-31 02:15 PDT, mic.gallego
no flags Details
rendering in safari, firefox, chrome (391.38 KB, image/png)
2023-11-20 03:58 PST, Karl Dubost
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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