Bug 220850 - Pieces of prior text draw remain when redrawing after updating text properties
Summary: Pieces of prior text draw remain when redrawing after updating text properties
Status: RESOLVED DUPLICATE of bug 6274
Alias: None
Product: WebKit
Classification: Unclassified
Component: SVG (show other bugs)
Version: Safari 14
Hardware: Mac (Intel) macOS 10.14
: P2 Normal
Assignee: Nobody
Depends on:
Reported: 2021-01-22 02:14 PST by Frank
Modified: 2021-01-27 02:05 PST (History)
2 users (show)

See Also:

Consistent reproduction pattern (1000 bytes, text/html)
2021-01-22 02:14 PST, Frank
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Frank 2021-01-22 02:14:59 PST
Created attachment 418121 [details]
Consistent reproduction pattern

Redrawing a text element after font family or font size changes can result in pieces of the old draw remaining on screen. 
It mainly seems to occur when the updated text has decreased in size in comparison to before the update.

Resizing the window, removing focus from the window or changing style attributes on the text element will clear the remnants of the old draw. 

This seems to be dependent on the used font, but can be consistently reproduced (see attachment).
Comment 1 Alexey Proskuryakov 2021-01-24 17:12:25 PST
Dupe of bug 6274?
Comment 2 Frank 2021-01-27 02:05:19 PST
(In reply to Alexey Proskuryakov from comment #1)
> Dupe of bug 6274?

I think you're right. The remaining pixels are exactly the part of the glyph that are outside the bounds of the text. This explains why it does not happen for all fonts. Thanks for taking a look, I'll mark this as duplicate.
Comment 3 Frank 2021-01-27 02:05:38 PST

*** This bug has been marked as a duplicate of bug 6274 ***