Bug 170801

Summary: Changing text alignment can leave artifacts on fonts that spill outside of the bounding box
Product: WebKit Reporter: Steve <steve>
Component: TextAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: jonlee, mmaxfield
Priority: P2    
Version: Safari 10   
Hardware: All   
OS: All   
Attachments:
Description Flags
Repro.html
none
Screenshot demonstrating the artifact none

Description Steve 2017-04-12 21:08:03 PDT
Created attachment 306968 [details]
Repro.html

It seems that the parts of a glyph that spills outside of the bounding box of an element isn't getting cleaned up when the text alignment is changed.

Steps to reproduce:
1. Open the attached Repro.html file
2. Click the Toggle Alignment button
3. Notice the artifact that remains where the bottom of the J used to be

Reproduced on the following environments:
- Safari Version 10.0.1 (11602.2.14.0.7) on a Macbook Pro
- Safari on iPad Air with iOS 9.0
- Safari on iPad Air with iOS 9.3.2
- Safari on iPad Air with iOS 10.3.2

Unable to reproduce on:
- Google Chrome Version 57.0.2987.133 (64-bit) on a Macbook Pro
- Firefox 52.0.2 (64-bit) on Macbook Pro
Comment 1 Steve 2017-04-12 21:09:41 PDT
Created attachment 306969 [details]
Screenshot demonstrating the artifact
Comment 2 Alexey Proskuryakov 2017-04-12 22:41:15 PDT
Duplicate of bug 6274?
Comment 3 Jon Lee 2017-04-14 13:55:30 PDT

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