I've just discovered that this bug also happens in Safari Technology Preview (Release 223 (WebKit 20622.1.18.11.5)), but NOT in Safari stable (Version 18.5 (20621.2.5.11.8)).
So somewhere in between these WebKit versions, Apple likely broke something and it's also affecting Orion.