title: <h1> is not inheriting font-weight from its container
body: <p>I have a problem with inheritance in <code>CSS</code>. I made a <code>div</code> container put an <code>h1</code> element within it as such:</p>
  
  <pre><code>&lt;body&gt;
     &lt;div class="container"&gt;
       &lt;h1&gt; test &lt;/h1&gt;
     &lt;/div&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p>From what I understand, all text within the <code>h1</code> element is bold and has a font-weight of 2em. To counteract this, I placed the following <code>CSS</code> properties on the container. </p>
  
  <pre><code>.container{
       font-size:5em;
       font-weight:normal;
  }
  </code></pre>
  
  <p><code>h1</code> seems to inherit both properties and <code>h1</code>'s <code>font-size</code> changes to <code>5em</code> as expected. But <code>&lt;h1&gt;</code>'s font-weight stays bold, even though it inherited <code>font-weight:normal;</code> from its parent element. Here's what I see on my screen. </p>
  
  <p><a href="https://i.stack.imgur.com/9lSaV.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/9lSaV.png" alt="Font-Weight Problem"></a></p>
  
  <p>Why does the <code>h1</code>'s font-weight not change to <code>font-weight:normal;</code>? I'm think its because there are certain CSS properties, like font-weight, that a child element does not inherit from its parent. </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>.container{
       font-size:5em;
       font-weight:normal;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;body&gt;
     &lt;div class="container"&gt;
       &lt;h1&gt; test &lt;/h1&gt;
     &lt;/div&gt;
  &lt;/body&gt;</code></pre>
  </div>
  </div>
  </p>