title: ResizeObserver don't work as expected on Windows
body: <p>I was playing with ResizeObserver (that's supported by google chrome behind experimental web platform flag). I've create codepen demo using jQuery UI resizable. It work fine on chromium linux, but on Windows it stops after a while or execute only once.</p>
  
  <p>My code look like this:</p>
  
  <pre><code>$('#node').css({
    width: 140,
    height: 50
  }).resizable();
  
  function resizer(node, callback) {
    if (window.ResizeObserver) {
      var resizer = new ResizeObserver(function(entries) {
        callback(entries[0]);
      });
      resizer.observe(node);
      return () =&gt; resizer.unobserve(node);
    } else {
      return () =&gt; undefined;
    }
  }
  resizer(document.querySelector('.content'), function(entry) {
    var width = entry.contentRect.width;
    var height = entry.contentRect.height
    console.log(width + 'x' + height);
    // custom event found on
    // https://ebidel.github.io/demos/dom_resize_events.html
    entry.target.dispatchEvent(new CustomEvent('resize', {
      detail: {width,height}
    }));
  });
  document.querySelector('.content').addEventListener('resize', (e) =&gt; {
    console.log(e.detail);
  });
  </code></pre>
  
  <p>I've try to restart the browser, close/open developer tools also download the files to local drive and open using file protocol and got the same results.</p>
  
  <p>the <a href="https://googlechrome.github.io/samples/resizeobserver/" rel="nofollow noreferrer">google chrome example</a> works fine,</p>
  
  <p>Here is a <a href="https://codepen.io/jcubic/pen/GOdaym?editors=1010" rel="nofollow noreferrer">my pen</a></p>