This is a long-standing bug in Safari documented by many web developers, such as at https://github.com/ElMassimo/vite_ruby/issues/258
I would assume, given how many years people have been reporting this, that it will never be fixed and Safari will never be a reliably working browser.
Topic:
Safari & Web
SubTopic:
General
Tags: