Page 1
Form follows function — that has been misunderstood. Form and function should be one.
A region whose content is replaced, like a page of a paginated list. The ink covers the old text, your code swaps the DOM underneath, and the new text is revealed; the height follows and focus lands on the new content.
Form follows function — that has been misunderstood. Form and function should be one.
The same swap run inside document.startViewTransition(): the browser morphs the region's box.
Less, but better.