For some reason, the ResizeObserver doesn't detect size changes within a succession. Needs more investigation.