Nodejs.dev: Navigation title color bug on iOS Safari (Phone Only, no Emulator)

Created on 28 Mar 2019  路  7Comments  路  Source: nodejs/nodejs.dev

I wanted to re-open issue #86 since I noticed the color issue was still happening on my iPhone XR in Safari. I tested both nodejs.dev and the final build from #195 and it seems that while the fix worked for an iPhone screen in Firefox developer tools, it did not work on my actual iPhone in the Safari app.

How to reproduce:

  1. Scroll at a normal scroll speed down the navigation menu. The Getting Started title should remain black'

I noticed that if I scroll really fast, or if I try to scroll further when reaching the bottom of the page, the Getting Started title will change back to white

colorbug

I am wondering if anyone else with iPhones can try to replicate this as well, to better understand the scope of this issue.

bug help wanted

Most helpful comment

Sounds great, I will work on a PR for a fix then!

All 7 comments

Ah yes, IntersectionObserver is currently not supported on Safari (both desktop and mobile). It is in Technology Preview, though, so support should hopefully land soon.

This bug stems from the fallback CSS we have for legacy browsers, so that's where you want to look.

I'm able to reproduce this on my Iphone SE in both Safari and Chrome. Looks like this:

bug

Yup, that's accurate.

Chrome, and pretty much any other browser on iOS, has major technical restrictions imposed by the App Store, such as the requirement to use the built-in UIWebView for rendering.

So, AFAIK, basically what doesn't work on iOS Safari won't work on iOS anything else.

Since iOS 12.2 was recently released, I actually just went ahead and upgraded my phone to it.
From testing on Safari and Chrome, it looks to be working fine without the issue. The color transition is pretty smooth.

Would you guys think it's worth adding a fix for this issue for older iOS and Mac versions, or to just wait for users to update?

IMO, it's worth fixing anyway, 'coz the fallback CSS will continue to be used by other legacy browsers that don't ship with IntersectionObserver.

Or we could just ship a polyfill instead 馃檭.

Sounds great, I will work on a PR for a fix then!

Tried out a polyfill for IntersectionObserver in #222. Looking forward to feedback. Cheers.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

saulonunesdev picture saulonunesdev  路  4Comments

marcustisater picture marcustisater  路  4Comments

mhdawson picture mhdawson  路  4Comments

SMotaal picture SMotaal  路  4Comments

benhalverson picture benhalverson  路  4Comments