title: How to make sure table header in Firefox print preview appears only once?
body: <p>My html table looks fine in the print preview in Chrome but the table header seems to appear twice in the Firefox print preview. Also, in the Safari print preview, the entire table doesn't appear at all, which is worse. Is there a way to solve these issues? Thanks!</p>
  
  <pre><code>#testTable tr, #testTable th, #testTable td
  {
      border:solid 1px;
      font-size:9px;
      padding:2px;
      text-align:center;
  }
  
  #testTable th
  {
      background-color:#ebebeb !important;
  }
  
  @media print 
  {
      #testTable
      {
          position: fixed;
          left: 0;
          margin-top: 100px !important;
          width:99% !important;
          margin-left:0px;
      }       
  }
  
  @supports (-moz-appearance:meterbar) 
  {
      #testTable th
      {     
          -webkit-print-color-adjust: exact;
          color-adjust: exact;
      }
  }
  </code></pre>
  
  <p>this is the html table</p>
  
  <pre><code>&lt;table id="testTable"&gt;
    &lt;tr&gt;
      &lt;th&gt;Reference&lt;/th&gt;
      &lt;th&gt;Name&lt;/th&gt;
      &lt;th&gt;Country&lt;/th&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;Alfreds Futterkiste&lt;/td&gt;
      &lt;td&gt;Maria Anders&lt;/td&gt;
      &lt;td&gt;Germany&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/59lIu.png" rel="nofollow noreferrer">table header appearing twice</a></p>