title: Why CSS transform translate leaves border of table row where it was?
body: <p>I am creating a table by using bootstrap 3.7:</p>
  
  <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>body {
      padding: 20px;
      box-sizing: border-box;
  }
  table {
      width: 300px;
  }
  thead tr {
      background-color: #eee;
      border: 1px solid blue !important;
      
  }
  thead tr th {
      border: 1px solid blue !important;
  }
  
  
  thead tr {
      background-color: #eee;
      border: 1px solid blue !important;
      transform: translateY(-23px);
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous"&gt;
  &lt;table class="table table-bordered" &gt;
      &lt;thead&gt;
          &lt;tr  &gt;
              &lt;th&gt;asdasd&lt;/th&gt;
              &lt;th&gt;asdasd&lt;/th&gt;
              &lt;th&gt;asdasd&lt;/th&gt;
          &lt;/tr&gt;
      &lt;/thead&gt;
      &lt;tbody&gt;
          &lt;tr&gt;
              &lt;td&gt;asda&lt;/td&gt;
              &lt;td&gt;asda&lt;/td&gt;
              &lt;td&gt;asda&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;asda&lt;/td&gt;
              &lt;td&gt;asda&lt;/td&gt;
              &lt;td&gt;asda&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;asda&lt;/td&gt;
              &lt;td&gt;asda&lt;/td&gt;
              &lt;td&gt;asda&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;asda&lt;/td&gt;
              &lt;td&gt;asda&lt;/td&gt;
              &lt;td&gt;asda&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;asda&lt;/td&gt;
              &lt;td&gt;asda&lt;/td&gt;
              &lt;td&gt;asda&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;asda&lt;/td&gt;
              &lt;td&gt;asda&lt;/td&gt;
              &lt;td&gt;asda&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;asda&lt;/td&gt;
              &lt;td&gt;asda&lt;/td&gt;
              &lt;td&gt;asda&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;asda&lt;/td&gt;
              &lt;td&gt;asda&lt;/td&gt;
              &lt;td&gt;asda&lt;/td&gt;
          &lt;/tr&gt;
      &lt;/tbody&gt;
  &lt;/table&gt;</code></pre>
  </div>
  </div>
  
  This shows a table like this:</p>
  
  <p><a href="https://i.stack.imgur.com/HzPTD.png" rel="noreferrer"><img src="https://i.stack.imgur.com/HzPTD.png" alt="enter image description here"></a></p>
  
  <p>But when I try to add transform translate:</p>
  
  <pre><code>thead tr {
      background-color: #eee;
      border: 1px solid blue !important;
      transform: translateY(23px);
  }
  </code></pre>
  
  <p>It works but the element <code>thead tr</code> cuts border and the blue border stays where the original shape was:</p>
  
  <p><a href="https://i.stack.imgur.com/8qIVk.png" rel="noreferrer"><img src="https://i.stack.imgur.com/8qIVk.png" alt="enter image description here"></a></p>
  
  <p>What actually I want: I don't to lose the border of <code>thead tr</code> when transform translate is applied.</p>
  
  <p>Does anybody knows a solution for this? I don't have any other solution for this problem. </p>
  
  <p>Code Pen: <a href="https://codepen.io/iksdatoo/pen/wmBEjg" rel="noreferrer">https://codepen.io/iksdatoo/pen/wmBEjg</a></p>