See https://twitter.com/lapcatsoftware/status/1453469143479504913. Jeff Johnson reports this issue on macOS 11.6.1. I'm also seeing this issue on macOS 12.0.1.
<rdar://problem/84819606>
This looks like flexbox layout issue. https://twitter.com/lapcatsoftware/status/1453470082517147648
Caused by r284359.
Reverted three changes in https://trac.webkit.org/changeset/285045/webkit