The bug described here reproduces on trunk: https://lapcatsoftware.com/articles/background.html
<rdar://problem/85908830>
This is a Safari bug, not a WebKit bug.
Resolving as 'Moved' since the fix is in the Safari layer. This should be fixed in STP 139 (or newer) and the macOS 12.3 Beta.