title: HTML element specified after floating div rendered before said div
body: <p>Consider this HTML snippet:</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;!DOCTYPE html&gt;
    &lt;html&gt;
        &lt;body&gt;
          &lt;div id="bounding-div"&gt;
            &lt;div style="float: left"&gt;
              &lt;h4&gt;test1&lt;/h4&gt;
            &lt;/div&gt;
            &lt;div style="float: right"&gt;
              &lt;h4&gt;test2&lt;/h4&gt;
            &lt;/div&gt;
          &lt;/div&gt;
          &lt;h3 style="background: #ff0000"&gt;Test&lt;/h3&gt;
        &lt;/body&gt;
      &lt;/html&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>When opened in firefox, "Test" is rendered before both "test1" and "test2". I would expect that the div element with the id "bounding-div" would group the floating elements and that elements specified thereafter ought to be rendered afterwards. Why is this not the case? What am I missing?</p>