This tests observing an element with an ResizeObserver and removing the element from the document while it is queued for delivery.