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

Popular Stories

Apple Vision Pro 2 Feature 2

Apple Reportedly Suspends Work on Vision Pro 2

Tuesday June 18, 2024 8:17 am PDT by
Apple has suspended work on the second-generation Vision Pro headset to singularly focus on a cheaper model, The Information reports. Apple was widely believed to have plans to divide its Vision product line into two models, with one "Pro" model and one lower-cost standard model. The company is said to have been deprioritizing the next Vision Pro headset over the past year, gradually...
Apple WWDC24 Apple Intelligence hero 240610

Apple Explains iPhone 15 Pro Requirement for Apple Intelligence

Wednesday June 19, 2024 4:48 am PDT by
With iOS 18, iPadOS 18, and macOS Sequoia, Apple is introducing a new personalized AI experience called Apple Intelligence that uses on-device, generative large-language models to enhance the user experience across iPhone, iPad, and Mac. These new AI features require Apple's latest iPhone 15 Pro and iPhone 15 Pro Max models to work, while only Macs and iPads with M1 or later chips will...
2022 back to school apple feature

Apple's 2024 Back to School Sale Launching This Week

Monday June 17, 2024 12:27 pm PDT by
Apple will launch its annual Back to School promotion for university students in the United States and Canada this week, according to Bloomberg's Mark Gurman. Apple's back to school sales provide students with a free Apple gift card when purchasing a Mac or an iPad, and this year's promotion could help Apple push the new M2 iPad Air and M4 iPad Pro models. Last year, Apple offered U.S....
apple watch series 9 display

Kuo: Apple Watch Series 10 to Get Larger Screen and Thinner Design

Monday June 17, 2024 1:20 am PDT by
This year's Apple Watch Series 10 will be thinner and come in larger screen sizes than previous models, according to Apple analyst Ming-Chi Kuo. In his latest industry note -10-and-98075c44ce92">shared on Medium, Kuo said the screen size options on the next-generation Apple Watch will increase from 41mm to 45mm, and from 45mm to 49mm, while being encased in a thinner design. For reference,...
M4 Real Feature Red

M4 MacBook Pro Models Expected to Launch in Late 2024

Tuesday June 18, 2024 10:50 am PDT by
MacBook Pro models with an M4 chip are expected to launch in the fourth quarter of 2024, according to display analyst Ross Young. In a tweet for subscribers, Young said that panel shipments for new 14-inch and 16-inch MacBook Pro models are set to begin in the third quarter of 2024, which suggests a launch toward the end of the year. Apple started its M4 chip refresh in May with the launch...
Apple Pay Later feature 1

Apple Discontinuing Apple Pay Later

Monday June 17, 2024 11:44 am PDT by
Apple is discontinuing Apple Pay Later, the buy now, pay later feature that it just launched last October. Apple Pay Later is being discontinued as of today, but people who have existing Apple Pay Later loans will be able to continue to pay them off and manage them through the Wallet app. Apple announced plans to end the feature in a statement provided to 9to5Mac, which also notes that...
watchOS 11 Thumb 2 1

watchOS 11 Supports Automatic Nap Detection

Monday June 17, 2024 4:05 pm PDT by
watchOS 11 appears to include a new feature that allows an Apple Watch to automatically detect and record when you're taking a nap. As shared on Reddit, an Apple Watch owner took a nap and was able to see the sleep data recorded in the Health app, despite not putting the device in Sleep Mode. Right now, the Apple Watch only tracks and records sleep when it is in Sleep Mode, and there is no...
iPod Nano vs iPod Pro Ad Feature 1

Apple Developing Thinner MacBook Pro, Apple Watch, and iPhone

Monday June 17, 2024 2:22 am PDT by
Apple intends to slim down the MacBook Pro, Apple Watch, and iPhone, with the new ultra-thin M4 iPad Pro a sign of the company's new design trajectory, according to Bloomberg's Mark Gurman. When the M4 iPad Pro was unveiled last month, Apple touted it as the company's thinnest product ever, and even compared it to the 2012 iPod nano to emphasize its slim dimensions. Writing in the latest ...

Top Rated Comments

miniyou64 Avatar
30 months 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: 17 Votes (Like | Disagree)
GraXXoR Avatar
30 months 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
30 months ago
The developer of Noir is gonna be ANNOYED.
Score: 8 Votes (Like | Disagree)
szw-mapple fan Avatar
30 months 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: 8 Votes (Like | Disagree)
singularity0993 Avatar
30 months 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
30 months 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)