<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 - positioning of top not compensating rounding of height"
   href="https://bugs.webkit.org/show_bug.cgi?id=164312">164312</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>positioning of top not compensating rounding of height
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>WebKit
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>Safari 10
          </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>CSS
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>webkit-unassigned&#64;lists.webkit.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>peter.krautzberger&#64;mathjax.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Reduced test case at <a href="http://codepen.io/pkra/pen/mEqOGx">http://codepen.io/pkra/pen/mEqOGx</a>.

It displays an &quot;x&quot; with a red background and next to it a span that has display:inline-block. Inside that inline-block are two spans with display:block, the second one being an &quot;x&quot; on the pink background, and the first a span with a thin height and green background. These should be stacked vertically, and the whole in-line block should be aligned on the baseline of the bottom span in the inline-block. 

(The test case adds the computed values of bottom/height/offset for convenience.)

The expected behavior would be that the two x's should be aligned.

However, the two x's are not aligned.

This works as expected in Firefox and IE8+. 

Related Blink bug at <a href="https://bugs.chromium.org/p/chromium/issues/detail?id=661468">https://bugs.chromium.org/p/chromium/issues/detail?id=661468</a></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>