Try using constant sizes, like pixels for example, instead of vmin which is based on the smaller dimension of the viewport.
As for the question what is causing it I can't answer exactly it looks like a bug, because it happens on Google Chrome but it works as intended on Edge