title: Display table caption tag inside table
body: <p>I'm trying to make the border and background of a table to go around the caption tag, rather than excluding it for accessibility reasons. I was it to display similar to a th tag.</p>
  
  <p>I've tried to add and remove borders, but the border and background styles are in a stylesheet I don't want to alter (or duplicate), making this challenging. </p>
  
  <pre><code>&lt;table class="border-background-stylesheet"&gt;
  &lt;caption&gt;Caption&lt;/caption&gt;
  &lt;tr&gt;&lt;th colspan="2"&gt;What I want caption to look like&lt;/th&gt;&lt;/tr&gt;
  &lt;tr&gt;&lt;td&gt;Data cell&lt;/td&gt;&lt;td&gt;Data cell&lt;/td&gt;&lt;/tr&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p>Example:</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>.border-background-stylesheet {
    border:#222222;
    background:#00EE00;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>    &lt;table class="border-background-stylesheet"&gt;
      &lt;caption&gt;Caption&lt;/caption&gt;
      &lt;tr&gt;&lt;th colspan="100"&gt;What I want caption to look like&lt;/th&gt;&lt;/tr&gt;
      &lt;tr&gt;&lt;td&gt;Data cell&lt;/td&gt;&lt;td&gt;Data cell&lt;/td&gt;&lt;/tr&gt;
      &lt;/table&gt;</code></pre>
  </div>
  </div>
  </p>