Apple Working on Safari Dark Mode Toggle for Viewing Specific Websites

Apple appears to be working on an upcoming Safari feature that will introduce a Dark mode user preference for individual websites, based on references found in open-source WebKit code.

safari icon blue banner
WebKit is Apple's browser engine that powers all browsers on iOS, and the new option, spotted by 9to5Mac, is referred in the GitHub-hosted WebKit code as "overriding the system color-scheme with a per-website preference." This should, for example, let users always view a particular website in Dark mode, even if the system's Light mode is enabled.

Since Apple introduced Dark mode for iPhone and iPad with iOS 13, developers have updated their app interfaces to match the system setting or allow users to override it. The new per-website preference in Safari would extend this option to browsing sites, and also let users correct for sites that don't display properly in either Light or Dark modes.

In addition to the per-website display setting, Apple is developing another option to block modal popups on specific websites viewed in Safari. Modal popups must be dismissed by tapping a Cancel or other button, and can look like system alerts. Apple also has a new API in the works to manage the process of cookie consent that many websites use.

The new WebKit features are labelled as "TBA," or to be announced, so it's unclear whether they will become available to use in Safari via future iOS 15 and macOS 12 updates or later in the year when the new operating system versions are released.

Tags: Safari, WebKit

Top Rated Comments

miniyou64 Avatar
13 weeks ago
Apple’s own Developer Portal doesn’t render correctly in their own browser, Safari, making it impossible to accept Developer agreements. You have to use Chrome or Firefox, and the Safari Team lead woman has the stones to get offended that people think Safari is bad. ?
Score: 18 Votes (Like | Disagree)
GraXXoR Avatar
13 weeks ago

Safari is the IE of the Mac. The browser you use to get the one you really want.
Nope.
That's a sort of glib-slash-edgy soundbite comment trying to riff off the old Internet Explorer meme, but not actually true in this case.

I repair macs here in Japan and the very vast majority don't have chrome installed, or if they do it's some ancient version that hasn't been used/updated in years. Most laypeople seem satisfied with Safari.
Score: 10 Votes (Like | Disagree)
OS X Dude Avatar
13 weeks ago
The developer of Noir is gonna be ANNOYED.
Score: 8 Votes (Like | Disagree)
szw-mapple fan Avatar
13 weeks ago

Safari is the IE of the Mac. The browser you use to get the one you really want.
Debatable. I much more prefer Safari over Chrome's UI and since Apple changed how they distributed extensions a couple of years ago all of the extensions I need are available.
Score: 7 Votes (Like | Disagree)
singularity0993 Avatar
13 weeks ago
As an app and web developer I completely agree that “Safari is the new IE”. Every web app we make must be specifically optimized for Safari because they simply don’t follow web standards. They also lack features without good reason, e.g. webkit animation is locked at 60fps, even if you have a 120hz display. Regex expressions lookbehind, which was standardized in 2018, still doesn’t work. And Safari is the only browser lagging behind. Just look at how many StackOverflow questions there are asking why xxx works on Chrome & Firefox but not Safari. If it weren’t for the iOS ecosystem we would have dropped Safari support already.

If Safari wasn’t preinstalled on Apple systems, I assume the majority of users would choose Chromium based browsers or Firefox instead. If this assumption turns out to be true, then Safari is undoubtedly the new IE.
Score: 7 Votes (Like | Disagree)
andrewxgx Avatar
13 weeks ago
can you do a global switch please? i would very much like to have all websites in light mode when OS is in dark mode.
Score: 5 Votes (Like | Disagree)

Related Stories

safari icon blue banner

Microsoft Edge Looks Set to Overtake Safari as World's Second Most Popular Desktop Browser

Tuesday February 22, 2022 6:48 am PST by
Microsoft Edge is on the verge of overtaking Safari as the world's second most popular desktop browser, web analytics service StatCounter reports (via TechRadar). According to the data, Microsoft Edge is now used on 9.54 percent of desktops worldwide, a mere 0.3 percent behind Apple's Safari, which stands at 9.84 percent. Google Chrome continues to hold first place with an overwhelming 65.38 ...
safari icon blue banner

Apple Prepares Fix for Safari Bug Allowing Websites to Decipher Your Recent Browsing Activity

Tuesday January 18, 2022 6:28 pm PST by
Over the weekend, we reported on a bug in WebKit's implementation of a JavaScript API called IndexedDB that can reveal your recent browsing history and even your identity, according to browser fingerprinting service FingerprintJS. Apple has since prepared a fix for the bug, according to a WebKit commit on GitHub, but the fix will not be available to users until Apple releases macOS Monterey, ...
osbscura 3

Obscura 3 Camera App Gains Overhauled Interface and New Capture Modes

Friday February 18, 2022 2:16 am PST by
Alternative iPhone camera app Obscura 3 has launched with several new camera features and an overhauled design that aims to make its various photography tools easier to access. In the newly designed interface, the control wheel of the previous version has been replaced by an entirely gesture-based control system with haptic feedback, which the developer says improves single-thumb control and ...
apple tv plus up next website

Apple TV+ Website Gains Up Next Queue

Wednesday March 23, 2022 1:20 pm PDT by
Apple has updated its dedicated Apple TV+ website with an Up Next queue for shows, making it easier to keep track of and watch Apple TV+ content on the web. The Up Next queue is a new addition to the Apple TV+ website, introduced earlier this week, according to 9to5Mac. Prior to now, the Apple TV+ website had an option for adding a show to the Up Next queue, but the Up Next queue did not...
webkit logo

Web Developers Form Advocacy Group to Allow Other Browser Engines on iOS

Wednesday March 2, 2022 4:29 am PST by
Apple is being challenged by a group of developers to end WebKit's dominance on its mobile devices and allow other browser engines on iPhone and iPad, following accusations that the current situation amounts to anti-competitive conduct. For those unfamiliar with WebKit, Apple's browser engine powers Safari and other areas of the operating system where web content is displayed. Apple requires ...
safari icon blue banner

macOS Monterey 12.2 and iOS 15.3 Release Candidates Fix Safari Bug That Leaks Browsing Activity

Thursday January 20, 2022 1:30 pm PST by
The macOS Monterey 12.2 and iOS 15.3 release candidates that came out today appear to address a Safari bug that could cause your recent browsing history and details about your identity to be leaked to malicious entities. As shared last week by browser fingerprinting service FingerprintJS, there is an issue with the WebKit implementation of the IndexedDB JavaScript API. Any website that uses...
safari icon blue banner

Safari Bug Allows Websites to Track Your Recent Browsing Activity in Real Time [Updated]

Sunday January 16, 2022 3:37 pm PST by
A bug in WebKit's implementation of a JavaScript API called IndexedDB can reveal your recent browsing history and even your identity, according to a blog post shared on Friday by browser fingerprinting service FingerprintJS. In a nutshell, the bug allows any website that uses IndexedDB to access the names of IndexedDB databases generated by other websites during a user's browsing session....
dr

Apple Commemorates Dr. Martin Luther King, Jr. With Full-Page Website Tribute

Monday January 17, 2022 1:44 am PST by
Today marks Dr. Martin Luther King, Jr. day, a federal holiday in the United States that pays respect to and honors the civil rights movement leader. As it's done in the past, Apple is commemorating the day with a full-page tribute on its website. On its home page, Apple remembers the civil rights leader with a photo of King and one of his quotes: "I believe that we can transform dark...

Popular Stories

iPhone 14 Pro Purple Front and Back MacRumors Exclusive

iPhone 14 Pro Renders Highlight Multiple Design Changes

Wednesday May 25, 2022 8:56 am PDT by
Leaker Jon Prosser today shared ostensibly accurate renders of the iPhone 14 Pro, providing the most accurate look yet at what the device could look like when it launches later this year. In the latest video on YouTube channel Front Page Tech, Prosser revealed renders of the iPhone 14 Pro made by Apple concept graphic designer Ian Zelbo, highlighting a range of specific design changes...
iPad Pro USB C Feature Coral

Deals: Apple's iPad Pro Reaches Up to $449 Off in Amazon's Latest Sales

Wednesday May 25, 2022 10:09 am PDT by
Amazon is marking down a wide variety of 11-inch and 12.9-inch iPad Pro models this week, with prices starting as low as $749.00 for the 11-inch tablet. You'll find the full list of sales below, all of which can be found on Amazon. Note: MacRumors is an affiliate partner with some of these vendors. When you click a link and make a purchase, we may receive a small payment, which helps us keep...
apple account card

Wallet App Now Supports Apple Account Cards on iOS 15.5

Wednesday May 25, 2022 5:01 pm PDT by
Apple appears to have recently updated the Wallet app to allow users to add an Apple Account Card, which displays the Apple credit balance associated with an Apple ID. If you receive an App Store or Apple Store gift card, for example, it is added to an Apple Account that was previously visible in the App Store and Apple Store apps. As of today, the Apple Account balance can also be added to...
iphone 13 pro max display bleen

iPhone 14 Max Reportedly Weeks Behind Schedule [Updated]

Thursday May 26, 2022 7:25 am PDT by
The iPhone 14 Max is currently behind schedule by around three weeks, according to Haitong International Securities analyst Jeff Pu. Yesterday, Nikkei Asia reported that at least one iPhone 14 model was three weeks behind schedule due to the impact of lockdowns on Apple's supply chains in China, but it was not clear which iPhone 14 model this related to. Now, Pu has clarified that the model...
iPhone 13 Always On Feature

iPhone 14 Pro Screen Refresh Rate Upgrade Could Allow for Always-On Display

Tuesday May 24, 2022 7:23 am PDT by
Last year's iPhone 13 Pro models were the first of Apple's smartphones to come with 120Hz ProMotion displays, and while the two iPhone 14 Pro models will continue to feature the technology, their screens could well boast expanded refresh rate variability this time round. To bring ProMotion displays to the ‌iPhone 13 Pro models‌, Apple adopted LTPO panel technology with variable refresh...
Apple Tap to Pay iPhone

Apple Stores Rolling Out iPhone-to-iPhone Contactless Payments Starting Today

Wednesday May 25, 2022 6:54 am PDT by
Apple in February unveiled a new "Tap to Pay on iPhone" feature that will allow compatible iPhones to accept payments via Apple Pay, contactless credit and debit cards, and other digital wallets, with no additional hardware required. Apple began testing the feature at its Apple Park Visitor Center earlier this month, and now Bloomberg's Mark Gurman has tweeted that the feature will begin...
apple tv 4k design green

Apple Releases tvOS 15.5.1 for Apple TV HD and Apple TV 4K

Wednesday May 25, 2022 9:42 am PDT by
Apple today released tvOS 15.5.1, a minor update to the tvOS operating system that first launched in September 2021. tvOS 15.5.1 comes about 10 days after the launch of tvOS 15.5. tvOS 15.5.1 can be downloaded over the air on the Apple TV through the Settings app by going to System > Software Update. ‌‌‌‌‌‌Apple TV‌‌‌‌‌‌ owners who have automatic software updates...