The initial height was seeded via getBoundingClientRect().height (border-box) but the ResizeObserver callback read entry.contentRect.height (content-box). This mismatch would cause a spurious height change detection on the first callback if the form element ever acquired padding or border. Use entry.borderBoxSize[0].blockSize (with contentRect fallback) to keep both measurements in border-box space. Co-authored-by: Julius Marminge <[email protected]>