title: ResizeObserver on iframe body behaves differently on Chrome and Firefox
body: <p>I'm trying to use ResizeObserver in order to listen for changes on the height of a document body and consequently adapt the size of the iframe which contains it.</p>
  <p>Everything seems to work fine on Chrome, but not on Firefox, where resize events do not seem to trigger the observer callback in the right way.</p>
  <p>This is the observer code, which updates the container height on every content size change:</p>
  <pre><code>const iframeElement = document.getElementById(&quot;container&quot;);
  const content = iframeElement.contentWindow.document.body;
  
  const resizeObserver = new ResizeObserver(entries =&gt; {
      entries.forEach(entry =&gt; {
          iframeElement.style.height = `${entry.target.scrollHeight}px`;
      });
  });
  resizeObserver.observe(iframeContent);
  </code></pre>
  <p>Here is a simple JSFiddle that clearly shows what I'm talking about: <a href="https://jsfiddle.net/ujxkre85/" rel="nofollow noreferrer">https://jsfiddle.net/ujxkre85/</a>.</p>
  <p>The containing iframe should adapt to the height of its content while this gets incremented. As you can see, it works fine on Chrome, but almost nothing happens running it on Firefox.</p>
  <p>Is there something I'm not getting about the API or is Firefox missing something here?</p>
  <p>Thank you.</p>