<html>
<head>
<base href="https://bugs.webkit.org/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - Using -apple-system for font-family creates unneeded white-space in inline-flex/inline-block"
href="https://bugs.webkit.org/show_bug.cgi?id=150796">150796</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Using -apple-system for font-family creates unneeded white-space in inline-flex/inline-block
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr>
<tr>
<th>Product</th>
<td>WebKit
</td>
</tr>
<tr>
<th>Version</th>
<td>Safari 9
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Macintosh
</td>
</tr>
<tr>
<th>OS</th>
<td>Mac OS X 10.10
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>Major
</td>
</tr>
<tr>
<th>Priority</th>
<td>P2
</td>
</tr>
<tr>
<th>Component</th>
<td>CSS
</td>
</tr>
<tr>
<th>Assignee</th>
<td>webkit-unassigned@lists.webkit.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>contact@benfrain.com
</td>
</tr></table>
<p>
<div>
<pre>It is possible that this issue is related to this: <a class="bz_bug_link
bz_status_NEW "
title="NEW - Zero-width spaces are rendered incorrectly using -apple-system font"
href="show_bug.cgi?id=147845">https://bugs.webkit.org/show_bug.cgi?id=147845</a>
Here is a reduction. Only tested this on Yosemite/Safari 9. Click the button to toggle -apple-system being applied in the body font stack.
<a href="http://codepen.io/benfrain/pen/YyjwZp">http://codepen.io/benfrain/pen/YyjwZp</a>
Basically, if you have a wrapping element with font-size: 0 and line-height: 0 set and any number of elements set to be inline-block there should be no white-space rendered between those blocks. However, when using -apple-system in the font-family property, white-space is rendered regardless.
This can be problematic for layouts that rely on this technique to produce columns (sane problem with inline-flex too).
Are there any known workarounds CSS wise? I realise that whitespace could be removed in the DOM but in case users don't have the ability to remove the whitespace from the DOM are there any alternatives?</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>