<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 - Misaligned inline-block due to fractional padding/margin/other vertical spacing"
href="https://bugs.webkit.org/show_bug.cgi?id=158441">158441</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Misaligned inline-block due to fractional padding/margin/other vertical spacing
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr>
<tr>
<th>Product</th>
<td>WebKit
</td>
</tr>
<tr>
<th>Version</th>
<td>WebKit Nightly Build
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Unspecified
</td>
</tr>
<tr>
<th>OS</th>
<td>Unspecified
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>Normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P2
</td>
</tr>
<tr>
<th>Component</th>
<td>Layout and Rendering
</td>
</tr>
<tr>
<th>Assignee</th>
<td>webkit-unassigned@lists.webkit.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>laughinghan@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>simon.fraser@apple.com
</td>
</tr></table>
<p>
<div>
<pre>Tested on WebKit Nightly r201711
UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_5) AppleWebKit/602.1.36+ (KHTML, like Gecko) Version/9.1.1 Safari/601.6.17
# Example URL:
<a href="http://output.jsbin.com/tivuvov">http://output.jsbin.com/tivuvov</a>
# Steps to reproduce the problem:
1. Open <a href="http://output.jsbin.com/tivuvov">http://output.jsbin.com/tivuvov</a>
2. See misaligned x and 2
# What is the expected behavior?
x and 2 should always line up, because according to the CSS 2.1 spec:
The baseline of an 'inline-block' is the baseline of its last line box in the normal flow
<a href="https://www.w3.org/TR/CSS21/visudet.html#propdef-vertical-align">https://www.w3.org/TR/CSS21/visudet.html#propdef-vertical-align</a>
Firefox 46 displays the correct behavior.
# What went wrong?
At certain fractional values of padding or margin, the x and 2 are misaligned, for example .3em.
# Notes
Safari 9.1.1 and Chrome 50 have the same problem, at I think all the same fractional values, but the misalignment is much more severe.</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>