title: Vertical-align baseline not working
body: <p>I have a very simple setup: </p>
  
  <pre><code>&lt;button&gt;
      Lorem
  &lt;/button&gt;
  &lt;input type="text" value="Ipsum"&gt;
  </code></pre>
  
  <p>with both elements next to each other using <code>display: inline-block</code>:</p>
  
  <pre><code>button, input{
      height: 34px;
      line-height: 34px;
      display: inline-block;
      box-sizing: border-box;
      vertical-align: baseline;
      padding: 0;
      margin: 0;
      border: 1px solid green;
      font-size: 14px;
  }
  </code></pre>
  
  <p>Example here: <a href="http://jsfiddle.net/j02ypo0v/" rel="noreferrer">http://jsfiddle.net/j02ypo0v/</a></p>
  
  <p><a href="https://i.stack.imgur.com/nbLC4.png" rel="noreferrer"><img src="https://i.stack.imgur.com/nbLC4.png" alt="enter image description here"></a></p>
  
  <p>As you can see, the two elements are not perfectly aligned (off 1px). </p>
  
  <p>I know, I could easily solve this by changing <code>vertical-align</code> to <code>middle</code>, but I want to understand <em>why</em> this offset is present in the first place.<br>
  IMO, it doesn't make any sense that the two elements are not perfectly vertically aligned since they share all CSS attributes (especially <code>height</code>, <code>line-height</code>, <code>display</code> and <code>vertical-align</code>).</p>
  
  <p>Can anybody explain me where the 1px offset is coming from?</p>