title: Vertical space between two inline-block and a block element
body: <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>.rectangle {
      width: 420px;
      height: 143px;
      color: #fff;
      background: rgba(0, 0, 0, 0.7);
      padding: 20px 0px 20px 10px;
      position: relative;
      display: inline-block;
      vertical-align: top;
  }
  
  .triangle {
      width: 0;
      height: 0;
      border-top: 92px solid transparent;
      border-bottom: 92px solid transparent;
      border-left:45px solid rgba(0, 0, 0, 0.7);
      display: inline-block;
  }
  
  .block {
    width: 200px;
    height: 80px;
    background: red;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="rectangle"&gt;&lt;/div&gt;&lt;!--
  --&gt;&lt;div class="triangle"&gt;&lt;/div&gt;
  &lt;div class="block"&gt;&lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>Where does it come from? How to get rid of it without negative margins (because on some screens they may overlap).</p>