According to references uncovered in open-source WebKit code, Safari users may soon be able to use dark mode on specific websites, as Apple appears to be working on an upcoming feature that will offer a Dark mode user choice for individual websites.
WebKit is Apple’s browser engine that runs all iOS browsers, and the new option, found by 9to5Mac, is described as “overriding the standard colour scheme with a per-website choice” in the GitHub-hosted WebKit source.
This should, for example, allow users to see a webpage in Dark mode regardless of whether the system’s Light mode is enabled.
Developers have adjusted their app interfaces to reflect the system setting or allow users to override it since Apple launched Dark mode for iPhone and iPad with iOS 13.
Safari’s new per-website preference would expand this choice to include browsing sites and allow users to adjust for sites that don’t appear correctly in either Light or Dark mode.
Apple is working on a new option to disable modal popups on specific websites visited in Safari, in addition to the per-website display setting. Modal popups, which sometimes resemble system alarms, must be dismissed by hitting a Cancel or other button. According to MacRumors, Apple is also working on a new API to control the cookie consent procedure used by many websites.
Because the new WebKit features are marked as ‘TBA,’ or to be announced, it’s unknown if they’ll be available in Safari via future iOS 15 and macOS 12 updates or later this year when the new operating system versions are launched.