Shows how Safari behaves when the user's preferred color scheme is dark
, and there is enough render-blocking CSS that the underlays and scroll bars do not respect the dark color scheme preference.
Also shows a solution to the issue using the <meta name="theme-color" content="..." />
tag.
- Clone the repo
npm run start
- Make sure your OS has a dark color scheme preference
- Visit http://localhost:8000 in a private window in Safari, see the underlay and scroll bars not respect the dark color scheme
- Visit http://localhost:8000/fixed-with-reduced-render-blocking-css in a private window in Safari, see the underlay and scroll bars respect the dark color scheme
- Visit http://localhost:8000/fixed-with-theme-color-meta in a private window in Safari, see the underlay and scroll bars respect the dark color scheme