Bug 147845 - Zero-width spaces are rendered incorrectly using -apple-system font
Summary: Zero-width spaces are rendered incorrectly using -apple-system font
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: 528+ (Nightly build)
Hardware: Mac OS X 10.10
: P2 Normal
Assignee: Myles C. Maxfield
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2015-08-10 15:16 PDT by BJ Burg
Modified: 2015-12-15 19:01 PST (History)
10 users (show)

See Also:


Attachments
screenshot of incorrect rendering (61.70 KB, image/png)
2015-08-10 15:16 PDT, BJ Burg
no flags Details
Reduced testcase (832 bytes, text/html)
2015-08-21 14:41 PDT, BJ Burg
no flags Details
[Screenshot] rendering of reduced testcase on Yosemite (21.18 KB, image/png)
2015-08-21 14:50 PDT, BJ Burg
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description BJ Burg 2015-08-10 15:16:06 PDT
Created attachment 258656 [details]
screenshot of incorrect rendering

STEPS TO REPRODUCE:

 1. Inspect a locally hosted layout test (i.e., LayoutTests/dom/dom-search.html)
 2. Open the Web Inspector to the Resources tab, and select dom-search.html
 3. Open the details sidebar tab

EXPECTED:

 * Local file URL should render normally in the "Location" section, "Full URL" row.

ACTUAL:

 * It has some fraction glyphs rendered on top whenever there is a forward slash, but only in the first linebox.



This seems like a rendering bug. I have not tried to make a reduction outside of Web Inspector yet.
Comment 1 Timothy Hatcher 2015-08-10 15:43:13 PDT
Is it the zero width space?
Comment 2 BJ Burg 2015-08-10 15:51:27 PDT
(In reply to comment #1)
> Is it the zero width space?

How would zero width spaces get inserted here?
Comment 3 Timothy Hatcher 2015-08-10 16:02:40 PDT
We insert them to force better breaking in URLs. There is code in Main.js we use for this. I am on my phone, so I can't look it up right now.
Comment 4 BJ Burg 2015-08-21 14:41:45 PDT
Created attachment 259662 [details]
Reduced testcase

This should be easier to diagnose...
Comment 5 Radar WebKit Bug Importer 2015-08-21 14:42:21 PDT
<rdar://problem/22385647>
Comment 6 BJ Burg 2015-08-21 14:50:59 PDT
Created attachment 259664 [details]
[Screenshot] rendering of reduced testcase on Yosemite

Seems to be reproducing on Yosemite but not El Capitan.
Comment 7 Myles C. Maxfield 2015-08-26 17:32:08 PDT
Does not reproduce on Mavericks.
Comment 8 Myles C. Maxfield 2015-08-26 17:33:19 PDT
Installing Yosemite to look at this.
Comment 9 Myles C. Maxfield 2015-08-26 22:56:43 PDT
Related: <rdar://problem/22451554>
Comment 10 Myles C. Maxfield 2015-12-15 19:01:53 PST
This renders correctly on El Capitan.