Apple appears to be working on an upcoming Safari feature that will introduce dark mode user preferences for individual websites based on references found in the open source WebKit code.
WebKit is Apple's browser engine that powers all browsers on iOS, and the new option discovered by 9to5Mac is included in the WebKit code hosted on GitHub Called "Override the system color scheme with per-site preferences". For example, this should allow users to always view a specific website in dark mode, even if the system's light mode is enabled.
Since Apple introduced Dark Mode for iPhone and iPad in iOS 13, developers have updated their app interfaces to match system settings or allow users to override it. A new per-site preference in Safari extends this option to browsing websites and lets users correct sites that don't display correctly in light or dark mode.
In addition to per-website display settings, Apple is developing another option to block modal pop-ups on specific websites viewed in Safari. Modal popups must be closed by clicking Cancel or another button and look like system alerts. Apple is also developing a new API that will manage the cookie consent process used by many websites.
New WebKit features are marked as "pending" or to be announced, so it's unclear whether they will be available through future iOS 15 and macOS 12 updates or later in the year when new operating system versions are released. Used in Safari.
The above is the detailed content of Apple works on Safari dark mode switch to view specific websites. For more information, please follow other related articles on the PHP Chinese website!