https://drafts.csswg.org/resize-observer-1/#dom-resizeobserver-observe
Does resizeObserver allow you to observe an element in another (same-origin) document? IntersectionObserver does, and there's some amount of code complexity associated with it. Should resizeObserver be arbitrarily different, and, if so, why?