title: CSS calc not working in HTML table
body: <p>I'm trying to create HTML table with last column wider then the others. I get the expected behavior using <code>padding-right</code>.</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>table {
    border-collapse: collapse;
    width: 80%
  }
  td,
  th {
    border: 1px solid black;
  }
  td:last-child,
  th:last-child {
    padding-right: 30px;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>Expected behaviour using &lt;i&gt;padding-right&lt;/i&gt;
  &lt;table&gt;
    &lt;thead&gt;
      &lt;tr&gt;
        &lt;th&gt;Col 1&lt;/th&gt;
        &lt;th&gt;Col 2&lt;/th&gt;
        &lt;th&gt;Col 3&lt;/th&gt;
        &lt;th&gt;Col 4&lt;/th&gt;
      &lt;/tr&gt;
    &lt;/thead&gt;
    &lt;tbody&gt;
      &lt;tr&gt;
        &lt;td&gt;Row 1&lt;/td&gt;
        &lt;td&gt;Row 2&lt;/td&gt;
        &lt;td&gt;Row 3&lt;/td&gt;
        &lt;td&gt;Row 4&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
        &lt;td&gt;Row 1&lt;/td&gt;
        &lt;td&gt;Row 2&lt;/td&gt;
        &lt;td&gt;Row 3&lt;/td&gt;
        &lt;td&gt;Row 4&lt;/td&gt;
      &lt;/tr&gt;
    &lt;/tbody&gt;
  &lt;/table&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>Now my question is how can I get the same behavior using CSS <code>calc</code>? 
  Here is an example how I wanted to achieved it and <a href="https://jsfiddle.net/rpyydd5n/2/" rel="nofollow">JSFiddle with both examples</a>.</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>table {
    border-collapse: collapse;
    width: 80%
  }
  td,
  th {
    border: 1px solid black;
    width: calc((100% - 30px) / 4);
  }
  td:last-child,
  th:last-child {
    width: calc((100% - 30px) / 4 + 30px);
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>Hopefully the same behaviour as above using &lt;i&gt;calc&lt;/i&gt;
  &lt;table&gt;
    &lt;thead&gt;
      &lt;tr&gt;
        &lt;th&gt;Col 1&lt;/th&gt;
        &lt;th&gt;Col 2&lt;/th&gt;
        &lt;th&gt;Col 3&lt;/th&gt;
        &lt;th&gt;Col 4&lt;/th&gt;
      &lt;/tr&gt;
    &lt;/thead&gt;
    &lt;tbody&gt;
      &lt;tr&gt;
        &lt;td&gt;Row 1&lt;/td&gt;
        &lt;td&gt;Row 2&lt;/td&gt;
        &lt;td&gt;Row 3&lt;/td&gt;
        &lt;td&gt;Row 4&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
        &lt;td&gt;Row 1&lt;/td&gt;
        &lt;td&gt;Row 2&lt;/td&gt;
        &lt;td&gt;Row 3&lt;/td&gt;
        &lt;td&gt;Row 4&lt;/td&gt;
      &lt;/tr&gt;
    &lt;/tbody&gt;
  &lt;/table&gt;</code></pre>
  </div>
  </div>
  </p>