This tests observing an element with an ResizeObserver and removing the element from the document.
The element should become eligible for GC at some point.