Oh, good point. Yes, I can change the behavior by resizing the window. Below a certain horizontal width it works fine; above that width it breaks like I described.
Note that my screen is 1920 pixels wide, and the switchover between the two behaviors seems to occur at around 1820 pixels. Narrower than that and it works fine, wider than that and it breaks.
This is so weird. It breaks in Firefox and Edge for >1820px for me too but works fine in Chrome. Looking into this. They appear to display absolutely positioned elements on the page differently for some reason.