Resize in Safari to see the issue

without fix
with fix