title: CSS borders: difference in Firefox/Chrome
body: <p>What I'm basically doing is to reproduce a pre-formatted table in HTML/CSS. However, it's displayed differently in different browsers.
  Firefox and IE shows it as it's intended. Chrome, however, draws a bogus line that's not there even by inspecting the HTML. In the original file, Chromium Embedded (CEF1) has additional differences.</p>
  
  <p>I made a snippet to demonstrate the problem:</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-html lang-html prettyprint-override"><code>&lt;html&gt;
  
  &lt;head&gt;
    &lt;style type="text/css" media="all"&gt;
      @media all {
        TABLE {
          border-collapse: collapse;
          border-spacing: 0;
          margin: 0;
          padding: 0;
          border: none;
          table-layout: fixed;
          empty-cells: show;
        }
        TR {
          page-break-inside: avoid;
        }
        TD {
          font-size: 11pt;
          font-family: "Times New Roman", Times, serif;
          text-align: center;
          vertical-align: middle;
          padding: 1px;
        }
        TD.S1 {
          border-left: 1px solid black;
          border-right: 1px solid black;
          border-top: 1px solid black;
          border-bottom: 1px solid black;
        }
        TD.S2 {
          border: none;
        }
        TD.S3 {
          border-left: none;
          border-right: none;
          border-top: none;
          border-bottom: 1px dotted black;
        }
      }
    &lt;/style&gt;
  &lt;/head&gt;
  
  &lt;body&gt;
    &lt;table&gt;
      &lt;tr&gt;
        &lt;td class="S1"&gt;A&lt;/td&gt;
        &lt;td class="S2"&gt;B&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
        &lt;td colspan="2" class="S3"&gt;C&lt;/td&gt;
      &lt;/tr&gt;
    &lt;/table&gt;
  &lt;/body&gt;
  
  &lt;/html&gt;</code></pre>
  </div>
  </div>
    </p>
  
  <p>So the question is: Is there a problem with the above CSS, or anything that should be used in a different way? I doubt such a basic thing could be a Chrome bug. Still, I don't want that line below cell "B".</p>