5
votes
Website rendering issue on Safari
Hey folks!
I can only imagine I'm saying something that's been said many times before, but I'm having a bit of an issue with the rendering of the website on desktop Safari.
It seems that everything renders on top of everything else in an ugly way the first time I pull up the site, to the point that I can't read anything. But here's the weird part: if I click any link, then use my back button, everything renders fine. This has to be some kind of wonky JavaScript problem? Maybe? I'm not sure.
Honestly, I just want to know that I'm not the only one seeing this issue. It's very strange, and I'll help to fix it however I can if I can get access to the codebase for the site.
That's strange. I'm also using Safari on macOS and I don't have this problem.
Yeah, we've had a few reports of this, but it's unfortunately hard for me to try to figure out or fix since I don't have a Mac: https://gitlab.com/tildes/tildes/issues/9
In that post, Evan said it seemed fixed on MacOS 10.13 and Safari 11.1, are your versions different from that?
While it still needs to be supported, it's been my experience that IE11 and Safari fight for the title of worst standards compliant browser. Good luck with the ping-pong of fixing shit for safari only having it break everything else.
You can do somewhat decent testing with some hackintosh vms... but yeah, getting ahold of an actual Mac is going to be the best way, but also it seems Safari 10 (~2 years old-ish, has very different behavior to the latest version, so you'll probably need an older version to hold back updates on)
Safari doesn't make it easy to test compatibility :/
Edit: My best guess is likely support for
display: grid
, it's based on the same standards asflex
but is much newer, and has many edge cases. Even flex has strange behaviors with measuring on safari still.With regards to the List of groups,
flex-direction: column
is notoriously poorly supported across many browsers. It has a lot to do with the way that the web was originally built (i.e. height is a product of width & layout). It sounds strange as fuck but you actually will find you have a lot more luck using:It's dirty, but it has fewer edge cases... or just use
display: block
if you don't need any of flex's specific layouting like order changes or alignment.I see. Yeah, I'm on macOS 10.13 but Safari 11.0. I'm assuming 11.1 is the technology preview? If it is, I'll try updating to it and check again. Thanks for the info!
I'm using Safari 11.1 on High Sierra and not able to replicate the issue.