<?xml version="1.0" encoding="utf-8" standalone="no"?><feed xmlns:media="http://search.yahoo.com/mrss/" xmlns="http://www.w3.org/2005/Atom"><id>https://www.loopwerk.io/articles/tag/browsers/feed.xml</id><title>Loopwerk articles tagged browsers</title><author><name>Kevin Renskers</name></author><link href="https://www.loopwerk.io/articles/tag/browsers/feed.xml" rel="self"></link><updated>2026-11-26T10:12:12Z</updated><entry><id>https://www.loopwerk.io/articles/2026/safari-colors/</id><title>Safari’s tab bar has a dark mode bias</title><updated>2026-11-04T22:09:14Z</updated><summary>Safari's "Show color in tab bar" setting doesn't always respect a website's color, depending on whether macOS is in light mode or dark mode.</summary><content type="html">&lt;p&gt;There’s a setting in Safari, called “Show color in tab bar”. When enabled, Safari will extend the website’s background color into the window chrome, including the address bar, tab bar, and other toolbars.&lt;/p&gt; &lt;p&gt;I normally don’t have this setting enabled, as I don’t want my browser to blink in different colors like a deranged clown when I switch between tabs, but I decided to try it with my own website, and I found some weird behavior.&lt;/p&gt; &lt;p&gt;When macOS is in light mode, Safari will always use the website’s background color, no matter if it’s dark or light:&lt;/p&gt; &lt;p&gt;&lt;img src="/articles/images/safari-colors/light_mode_dark_site.webp" alt="" class="shadow" /&gt;&lt;/p&gt; &lt;p&gt;&lt;img src="/articles/images/safari-colors/light_mode_light_site.webp" alt="" class="shadow" /&gt;&lt;/p&gt; &lt;p&gt;But when macOS is in dark mode, then Safari will only respect dark websites. Light-colored websites will not get a light tab bar:&lt;/p&gt; &lt;p&gt;&lt;img src="/articles/images/safari-colors/dark_mode_dark_site.webp" alt="" class="shadow" /&gt;&lt;/p&gt; &lt;p&gt;&lt;img src="/articles/images/safari-colors/dark_mode_light_site.webp" alt="" class="shadow" /&gt;&lt;/p&gt; &lt;p&gt;One of these is not like the others… Weird, huh?&lt;/p&gt;</content><link rel="alternate" href="https://www.loopwerk.io/articles/2026/safari-colors/"></link></entry><entry><id>https://www.loopwerk.io/articles/2026/private-email/</id><title>The search for a cross-browser private email address service</title><updated>2026-11-03T00:53:20Z</updated><summary>iCloud's Hide My Email only works in Safari, DuckDuckGo's extension doesn't work in Safari and forces their search engine... are there no better solutions?</summary><content type="html">&lt;p&gt;Yesterday I &lt;a href="/articles/2026/still-no-perfect-browser/"&gt;reviewed a bunch of web browsers&lt;/a&gt;, and I mentioned that the ability to create private email addresses is important to me. It’s a great way to combat spam; no matter how much you trust a website not to spam you, eventually they’ll be hacked, your email address will be public, and you’ll receive spam and phishing emails. Better to create a private email address that forwards to your real email address, a unique one for every website. Then you can simply deactivate that forwarding address when it gets leaked, or you no longer need it.&lt;/p&gt; &lt;p&gt;Within Safari I always use iCloud’s Hide My Email feature (which does require iCloud+). It will suggest to create a private email address for any email field:&lt;/p&gt; &lt;p&gt;&lt;img src="/articles/images/private-email/hide-my-email.webp" alt="" /&gt;&lt;/p&gt; &lt;p&gt;It’s super convenient, but it only works in Safari. If you use another browser and want to generate one of these addresses, you have to click through several screens in system settings. There’s no way to create a shortcut that generates an address, which is strange. Not sure why Apple makes it so hard to use this feature outside of Safari?&lt;/p&gt; &lt;p&gt;In other browsers there’s the DuckDuckGo extension, which enables their private email address feature (they don’t have an extension for Safari for some reason). And honestly, this one is even better than Apple’s version. It blocks all trackers, and it makes it super easy to deactivate and reactivate an address:&lt;/p&gt; &lt;p&gt;&lt;img src="/articles/images/private-email/duckduckgo.webp" alt="" /&gt;&lt;/p&gt; &lt;p&gt;I really do love this service. But here’s the catch: the DuckDuckGo extension also forces your search engine to DuckDuckGo. Fair enough of course, but I prefer (and pay for) &lt;a href="https://kagi.com" target="_blank" rel="noopener"&gt;Kagi&lt;/a&gt; myself. You can’t even visit DuckDuckGo’s &lt;a href="https://duckduckgo.com/email/" target="_blank" rel="noopener"&gt;email dashboard&lt;/a&gt; to generate a new private email if you don’t have the extension installed.&lt;/p&gt; &lt;p&gt;Firefox has their own Relay feature, but this only works in Firefox, and is only free for up to 50 addresses (also fair enough). It’s not a solution for me since I use Helium as my second browser.&lt;/p&gt; &lt;p&gt;So the easy choice is to use the DuckDuckGo extension in Helium, iCloud’s Hide My Email in Safari, and live with the fact that I’m using two different private email services, plus the fact I’m now forced to use DuckDuckGo as my search engine in Helium. But that didn’t sit right with me.&lt;/p&gt; &lt;p&gt;A second easy choice is to use something like &lt;a href="https://addy.io" target="_blank" rel="noopener"&gt;Addy&lt;/a&gt;, which has an extension for every browser. This would give one consistent service to use no matter which browser, without forcing you to a specific search engine. I really like DuckDuckGo’s service though…&lt;/p&gt; &lt;p&gt;I went with a slightly more complex route: I created my own shortcut which uses DuckDuckGo’s (undocumented) API to create a new address and puts it in my clipboard. This shortcut is available in the services menu in every macOS app, and also in the macOS menu bar. It’s pretty great! I can now create a unique &lt;code&gt;@duck.com&lt;/code&gt; email address in any browser or other app with just a single click.&lt;/p&gt; &lt;p&gt;Here’s how I got it to work.&lt;/p&gt; &lt;h2&gt;&lt;a name="1-get-your-duckduckgo-auth-token"&gt;&lt;/a&gt;1. Get your DuckDuckGo auth token&lt;/h2&gt; &lt;p&gt;First, install DuckDuckGo’s extension in your non-Safari browser of choice.&lt;/p&gt; &lt;p&gt;Then go to DuckDuckGo’s &lt;a href="https://duckduckgo.com/email/" target="_blank" rel="noopener"&gt;email dashboard&lt;/a&gt;, open the network inspector, and generate a new email address. There should be one request to &lt;code&gt;https://quack.duckduckgo.com/api/email/addresses&lt;/code&gt; in the inspector - get its Authorization header.&lt;/p&gt; &lt;p&gt;Now you can remove the extension again.&lt;/p&gt; &lt;h2&gt;&lt;a name="2-create-the-shortcut"&gt;&lt;/a&gt;2. Create the shortcut&lt;/h2&gt; &lt;p&gt;Create a new shortcut with the following steps:&lt;/p&gt; &lt;ol&gt; &lt;li&gt;Get Contents of URL &lt;ul&gt; &lt;li&gt;URL: &lt;code&gt;https://quack.duckduckgo.com/api/email/addresses&lt;/code&gt;&lt;/li&gt; &lt;li&gt;Method: &lt;code&gt;POST&lt;/code&gt;&lt;/li&gt; &lt;li&gt;Headers: &lt;code&gt;Authorization = Bearer {YOUR_AUTH_TOKEN}&lt;/code&gt;&lt;/li&gt; &lt;/ul&gt; &lt;/li&gt; &lt;li&gt;Get Dictionary Value: key &lt;code&gt;address&lt;/code&gt; from &lt;code&gt;Contents of URL&lt;/code&gt;&lt;/li&gt; &lt;li&gt;Text: &lt;code&gt;[Dictionary Value]@duck.com&lt;/code&gt; (tip: right click in the text field to insert a variable)&lt;/li&gt; &lt;li&gt;Copy to Clipboard: &lt;code&gt;Text&lt;/code&gt;&lt;/li&gt; &lt;/ol&gt; &lt;p&gt;&lt;img src="/articles/images/private-email/shortcut.webp" alt="" /&gt;&lt;/p&gt; &lt;p&gt;Give your shortcut a name and icon. Then open the details sidebar on the right, and check the &lt;code&gt;Services Menu&lt;/code&gt; box. Your shortcut is now available in any macOS app:&lt;/p&gt; &lt;p&gt;&lt;img src="/articles/images/private-email/service.webp" alt="" /&gt;&lt;/p&gt; &lt;aside class="important"&gt; &lt;p class="title"&gt;IMPORTANT&lt;/p&gt; &lt;p&gt;Do not share your shortcut with anyone else, as it includes your personal authorization token!&lt;/p&gt; &lt;/aside&gt; &lt;h2&gt;&lt;a name="3-add-it-to-the-menu-bar"&gt;&lt;/a&gt;3. Add it to the menu bar&lt;/h2&gt; &lt;p&gt;We can make it even better, by adding the shortcut directly to the menu bar, with its own icon. It was the most confusing step, so it might take a bit of trial and error to make it work. This should work in macOS Golden Gate at the time of writing:&lt;/p&gt; &lt;ol&gt; &lt;li&gt;Open &lt;code&gt;System Settings&lt;/code&gt; -&amp;gt; &lt;code&gt;Menu Bar&lt;/code&gt;&lt;/li&gt; &lt;li&gt;Click on &lt;code&gt;Add Controls...&lt;/code&gt;&lt;/li&gt; &lt;li&gt;Find the &lt;code&gt;Run Shortcut&lt;/code&gt; control, and drag that into your menu bar&lt;/li&gt; &lt;li&gt;You’ll be asked to choose which shortcut to run; pick your newly created shortcut&lt;/li&gt; &lt;/ol&gt; &lt;p&gt;It’ll take on the icon you’ve assigned to the shortcut itself, which in my case is an envelope (the one on the left):&lt;/p&gt; &lt;p&gt;&lt;img src="/articles/images/private-email/menubar.webp" alt="" /&gt;&lt;/p&gt; &lt;p&gt;The vertical centering looks a bit off (yet another example of Apple’s eye for detail being a bit lazy), but it works absolutely wonderfully nonetheless. Enjoy!&lt;/p&gt;</content><link rel="alternate" href="https://www.loopwerk.io/articles/2026/private-email/"></link></entry><entry><id>https://www.loopwerk.io/articles/2026/still-no-perfect-browser/</id><title>It’s 2026 and there’s still no perfect browser</title><updated>2026-11-02T14:00:12Z</updated><summary>A review roundup of a whole bunch of browsers.</summary><content type="html">&lt;p&gt;Back in 2011 I asked myself &lt;a href="/articles/2011/why-there-no-perfect-browser/"&gt;why there’s no perfect browser&lt;/a&gt;, in an admittedly pretty terribly written article.&lt;/p&gt; &lt;p&gt;Since then I’ve almost exclusively used Safari, and mostly it’s been good. There’s one huge problem though: the longer I work on a website, the more memory Safari eats, until it takes ten seconds just to open the web inspector. So fifteen years after the previous article I decided to revisit this question, and review a bunch of different browsers.&lt;/p&gt; &lt;p&gt;Let’s start with a list of features which are important to me, and which I’ll use to judge the different browsers.&lt;/p&gt; &lt;ol&gt; &lt;li&gt;Support for multiple profiles, each with their own cookies, and ideally their own bookmarks. For example when I use a Google Workspace with my work account in one tab, and then I open YouTube in a second tab, I don’t want that to use my work account. But switching to my personal Google account there affects that first tab too. So, a browser should have support for profiles with separate cookies. Ideally I can use different profiles side by side in one window, with per-tab containers or by switching profiles in place.&lt;/li&gt; &lt;li&gt;Support for the latest and greatest CSS and HTML features. My website uses CSS’s brand new &lt;a href="https://caniuse.com/mdn-css_properties_animation-timeline_scroll" target="_blank" rel="noopener"&gt;scroll-driven animations feature&lt;/a&gt;, which until recently was not supported by Firefox, even though other browsers added support between one and three years ago.&lt;/li&gt; &lt;li&gt;Privacy features, such as blocking ads and trackers (ideally even within YouTube videos), and a way to hide my email address by generating a temporary one.&lt;/li&gt; &lt;li&gt;Bookmark syncing to iPhone and iPad.&lt;/li&gt; &lt;li&gt;Access to my passwords and passkeys, which are stored in Apple’s Passwords app.&lt;/li&gt; &lt;li&gt;And just as important is what’s not included: I don’t want ads, AI features, or cryptocurrency crap. No bloat, just a browser.&lt;/li&gt; &lt;/ol&gt; &lt;h2&gt;&lt;a name="safari"&gt;&lt;/a&gt;Safari&lt;/h2&gt; &lt;p&gt;This browser ticks all the boxes, plus I like how it looks and feels. For example the two-finger swipes to go back and forth in the history feel so much better in Safari than they do in other browsers.&lt;/p&gt; &lt;p&gt; &lt;video src="/articles/images/still-no-perfect-browser/swipes.mp4" autoplay loop muted playsinline&gt;&lt;/video&gt;&lt;/p&gt; &lt;p&gt;*chef’s kiss*&lt;/p&gt; &lt;p&gt;It obviously has the best integration with the rest of the Apple ecosystem. It has native support for Apple Passwords and iCloud’s Hide My Email service. It can even read OTP codes sent via email and SMS, and automatically fill them in. Good stuff.&lt;/p&gt; &lt;p&gt;Safari might not have the most extensions, but all the important things are there.&lt;/p&gt; &lt;p&gt;There are some downsides though. I don’t love its profiles implementation. Yes, you can create multiple profiles, and each one has its own cookies and bookmarks. But the only way to use different profiles is by opening multiple Safari windows. This means that I basically always have two windows open, one behind the other, and it gets annoying to always switch between them. Per-tab profiles (containers) would solve a lot of this hassle.&lt;/p&gt; &lt;p&gt;Its responsive design tool works and is easily accessible via the Develop menu (once enabled), but when you’re mimicking an iPhone it still shows a normal cursor and all mouse-over styles. This makes it harder than necessary to test how a website feels on a mobile phone.&lt;/p&gt; &lt;p&gt;But by far the biggest problem is memory bloat, and the web inspector performance hit that comes with it. The longer you have a website open, especially when you refresh that site a bunch of times, the more memory that tab will eat up. When I work on my website, the site auto-refreshes when I make changes. This can easily happen a hundred times per hour, and the memory usage keeps on growing and growing. And at some point it takes literally ten seconds to open the web inspector. The only way to fix it is to close the site and open it in a new tab.&lt;/p&gt; &lt;p&gt;Safari has the huge ecosystem advantage and it genuinely has the best look and feel, but for web development it’s simply not good enough. It got so annoying that about a month ago I stopped using Safari for all web development tasks. It’s still my daily driver for everything else though.&lt;/p&gt; &lt;h2&gt;&lt;a name="firefox"&gt;&lt;/a&gt;Firefox&lt;/h2&gt; &lt;p&gt;Before I started using Safari, in the summer of 2007, I only used &lt;a href="https://www.firefox.com/" target="_blank" rel="noopener"&gt;Firefox&lt;/a&gt;. So when Safari was becoming unbearable for web development work, I turned to Firefox again to fill the role of dedicated development browser.&lt;/p&gt; &lt;p&gt;It still has a lot going for it, like a mountain of extensions. It supports both profile windows and container tabs. And unlike Safari, here separate profile windows open as individual apps in the Dock, which makes switching between them a lot easier.&lt;/p&gt; &lt;p&gt;While Firefox doesn’t support iCloud’s Hide My Email service, it has its own thing called &lt;a href="https://relay.firefox.com" target="_blank" rel="noopener"&gt;Relay&lt;/a&gt;, which does the same. It’s free for 50 forwarded addresses, after which it costs like $1 per month for unlimited addresses, which isn’t too bad.&lt;/p&gt; &lt;p&gt;I haven’t seen the performance and memory problems that I ran into with Safari, so for web development Firefox has been much better. Its responsive design tool is also a bit better, because it can mimic touches and hide the normal mouse-over styles.&lt;/p&gt; &lt;p&gt;Two-finger dragging isn’t as satisfying as in Safari. Instead of dragging a page “off screen”, it just shows a small arrow on the edge of the screen. It works, but doesn’t feel as good. I also don’t like the look of the browser itself, with the pill-shaped tabs and their multi-colored borders.&lt;/p&gt; &lt;p&gt;Sadly Firefox is often slow to adopt new HTML and CSS features, sometimes lagging behind the other browsers by multiple years. They also keep pushing their AI chatbot and VPN, and have enabled a whole bunch of data collection by default. Then there’s also the “suggestions from Firefox and our partners in your address bar” setting, which is enabled by default. Sure, everything can be disabled, but it shows that Firefox is on a course that I don’t agree with.&lt;/p&gt; &lt;h2&gt;&lt;a name="zen"&gt;&lt;/a&gt;Zen&lt;/h2&gt; &lt;p&gt;It’s basically Firefox with vertical tabs, and all the AI features and tracking removed. For me its best feature is actually the way that profiles work: instead of having to open a new &lt;a href="https://zen-browser.app/" target="_blank" rel="noopener"&gt;Zen&lt;/a&gt; window, one per profile, you can simply swipe on the sidebar to switch between the profiles. This is by far the best implementation of profiles that I’ve seen so far.&lt;/p&gt; &lt;p&gt;I’m not convinced by the vertical tabs though. The sidebar takes up a lot more space than a simple short tab bar, and on my screen I have more vertical space available than horizontal.&lt;/p&gt; &lt;p&gt;Because it’s based on Firefox, it gains support for all the same extensions (good) and slow support for new HTML and CSS features (bad). Zen also has no support for DRM, so you can’t use it to watch Netflix.&lt;/p&gt; &lt;p&gt;One thing that I am missing in Zen is the “new tab page”, which normally shows you your favorites or most recently visited websites. I use this &lt;em&gt;all the time&lt;/em&gt; in Safari, but in Zen opening a new tab only gives you a small popup with a search slash address bar.&lt;/p&gt; &lt;p&gt;It’s a good browser, and I definitely prefer it over Firefox, although the vertical tabs are not my first choice. It won’t take over daily driver duties from Safari, because that means having to switch to Firefox on my iPhone and iPad, if I want bookmarks to sync.&lt;/p&gt; &lt;h2&gt;&lt;a name="duckduckgo"&gt;&lt;/a&gt;DuckDuckGo&lt;/h2&gt; &lt;p&gt;&lt;a href="https://duckduckgo.com/" target="_blank" rel="noopener"&gt;DuckDuckGo&lt;/a&gt;, the privacy-focused search engine, has a WebKit-based &lt;a href="https://duckduckgo.com/app" target="_blank" rel="noopener"&gt;browser&lt;/a&gt;, which out of the box blocks the most ads, cookies, and trackers of any browser I’ve tried. It was the first one to reliably block ads within YouTube, and just for that I’ve used it as my second browser for about a year. Yes, just to watch YouTube.&lt;/p&gt; &lt;p&gt;I do love DuckDuckGo’s integrated email protection, where you can generate a &lt;code&gt;@duck.com&lt;/code&gt; address on the fly, which then forwards to your real email address. It’s similar to iCloud’s Hide My Email, and Firefox’s Relay, but better and free.&lt;/p&gt; &lt;p&gt;It’s an okay browser, but it’s too limited. You can’t switch search engines, which I guess makes sense for a browser made by DuckDuckGo, but I prefer (and pay for) Kagi myself. More than that though, you can’t install any extensions. That means no Apple Passwords integration, which is immediately a dealbreaker for a daily browser. And that lovely email protection feature? It’s available in Firefox and Chrome (and browsers based on them) using DuckDuckGo’s &lt;a href="https://duckduckgo.com/duckduckgo-help-pages/desktop/adding-duckduckgo-to-your-browser" target="_blank" rel="noopener"&gt;extension&lt;/a&gt;.&lt;/p&gt; &lt;aside class="update"&gt; &lt;p class="title"&gt;UPDATE&lt;/p&gt; &lt;p&gt;&lt;strong&gt;November 3, 2026&lt;/strong&gt;: I just found out that when you use the DuckDuckGo extension, it forces you to use the DuckDuckGo search engine, with no way to override this. That bummed me out, so I looked for a cross-browser solution that respects my choice. Check my &lt;a href="/articles/2026/private-email/"&gt;follow-up article&lt;/a&gt; for a pretty interesting one.&lt;/p&gt; &lt;/aside&gt; &lt;p&gt;Even its world-class ad blocking is pretty easily replicated in other browsers. Safari with the &lt;a href="https://apps.apple.com/app/id6504861501" target="_blank" rel="noopener"&gt;Ghostery&lt;/a&gt; and &lt;a href="https://apps.apple.com/app/id1662217862" target="_blank" rel="noopener"&gt;Wipr 2&lt;/a&gt; extensions installed now gives me ad-free YouTube, so for me there’s no reason left to use the DuckDuckGo browser.&lt;/p&gt; &lt;h2&gt;&lt;a name="orion"&gt;&lt;/a&gt;Orion&lt;/h2&gt; &lt;p&gt;Another WebKit-based browser, &lt;a href="https://orionbrowser.com/" target="_blank" rel="noopener"&gt;this one&lt;/a&gt; is made by &lt;a href="https://kagi.com/welcome" target="_blank" rel="noopener"&gt;Kagi&lt;/a&gt;, the search engine. Its unique selling point is that it can install Safari, Firefox and Chrome extensions, opening up a world of possibilities. It has a mobile browser too, with bookmarks synced between them.&lt;/p&gt; &lt;p&gt;I don’t really see the point of Orion over Safari though, when I can just install the Kagi extension in Safari, and enjoy first-party Passwords integration for example. Yes, Orion can install more extensions than Safari can, but I just have no need for that.&lt;/p&gt; &lt;h2&gt;&lt;a name="chrome"&gt;&lt;/a&gt;Chrome&lt;/h2&gt; &lt;p class="shadow"&gt;It doesn’t really need an introduction, right? It’s &lt;a href="https://www.google.com/chrome/" target="_blank" rel="noopener"&gt;Chrome&lt;/a&gt;. The browser that supports new web features first, and it comes with easily the best web inspector. I just love the way it makes fonts, colors, and accessibility info immediately visible:&lt;/p&gt; &lt;p&gt;&lt;img src="/articles/images/still-no-perfect-browser/inspector.webp" alt="" /&gt;&lt;/p&gt; &lt;p&gt;It also has the best responsive design mode where you don’t even get a normal mouse cursor. Instead you get a small circle, mimicking a finger.&lt;/p&gt; &lt;p&gt;Chrome supports profiles, but just like with Safari it’s a whole-window affair, and I really don’t like the way the two-finger swipes look and feel.&lt;/p&gt; &lt;p&gt;But Google is slowly turning its back on the open web, and they are limiting what extensions in Chrome can do, so that ad-blocking is less effective. There’s also the push to put AI into everything, and they really want you to sign into the browser with your Google account, so that they can track literally everything you do on any website.&lt;/p&gt; &lt;p&gt;I simply do not trust Google with my data, and I do not feel comfortable with their browser.&lt;/p&gt; &lt;h2&gt;&lt;a name="helium"&gt;&lt;/a&gt;Helium&lt;/h2&gt; &lt;p&gt;It’s Chrome, but without all the Google stuff. That makes &lt;a href="https://helium.computer/" target="_blank" rel="noopener"&gt;it&lt;/a&gt; basically the perfect browser for web development, and I do use it next to Safari.&lt;/p&gt; &lt;p&gt;Helium is pretty basic, for example it doesn’t have any bookmark syncing at all, but that doesn’t really matter for my dev-only browser.&lt;/p&gt; &lt;p&gt;Much more important is access to my passwords, which I get via Apple’s &lt;a href="https://chromewebstore.google.com/detail/icloud-passwords/pejdijmoenmkgeppbflobdenhhabjlaj" target="_blank" rel="noopener"&gt;Chrome extension&lt;/a&gt;. It gets the job done, but sadly it’s a sub-par experience: you need to re-authenticate on every browser start, and it doesn’t even suggest strong passwords. I don’t really want to switch to a new password manager just to switch browsers though, and for a web development-only browser this is good enough.&lt;/p&gt; &lt;h2&gt;&lt;a name="vivaldi"&gt;&lt;/a&gt;Vivaldi&lt;/h2&gt; &lt;p&gt;&lt;a href="https://vivaldi.com/" target="_blank" rel="noopener"&gt;Vivaldi&lt;/a&gt; is another Chromium-based browser without the Google stuff, but it also includes email, calendar and an RSS reader. It does have mobile versions and a sync service, so it could in theory take over from Safari, unlike Helium.&lt;/p&gt; &lt;p&gt;But I do really like Safari as my daily driver, and if all I need is a second browser for web development, then Helium does the job without the added bloat.&lt;/p&gt; &lt;h2&gt;&lt;a name="brave"&gt;&lt;/a&gt;Brave&lt;/h2&gt; &lt;p&gt;Based on Chromium, and it’s yet another browser that promises to block a bunch of ads and trackers by default. Their &lt;a href="https://brave.com/" target="_blank" rel="noopener"&gt;website&lt;/a&gt; makes a lot of persuasive arguments.&lt;/p&gt; &lt;p&gt;But it’s also full of AI, crypto crap, and their own “first-party, privacy-protecting ads while you browse”. You can get the same ad and tracker blocking in other browsers by installing &lt;a href="https://ublockorigin.com/" target="_blank" rel="noopener"&gt;uBlock Origin Lite&lt;/a&gt;, without the addition of other ads.&lt;/p&gt; &lt;h2&gt;&lt;a name="arc"&gt;&lt;/a&gt;Arc&lt;/h2&gt; &lt;p&gt;It’s a very similar browser to Zen, only based on Chromium. It has the same vertical tabs, the same way to easily switch between profiles without needing multiple windows. Because it’s based on Chromium you get best-in-class web standards support, and the best web inspector and responsive design mode.&lt;/p&gt; &lt;p&gt;On paper it could’ve been the perfect browser, but sadly it’s being shut down in favor of &lt;a href="https://www.diabrowser.com/" target="_blank" rel="noopener"&gt;Dia&lt;/a&gt;, an “AI-native” browser which connects to apps and services to give you a “morning brief” and “sharable reports”.&lt;/p&gt; &lt;p&gt;No thanks, I just want a browser!&lt;/p&gt; &lt;p&gt;While the AI features are optional, giving them your email address is not, and it’ll then create an Atlassian account for you! Luckily I gave them a throw-away temporary email address which I immediately nuked. And while you can choose to not use the AI features, they are still in your face; you can’t remove the prominent Chat button for example.&lt;/p&gt; &lt;h2&gt;&lt;a name="conclusion"&gt;&lt;/a&gt;Conclusion&lt;/h2&gt; &lt;p&gt;Safari is pretty close to my perfect browser. It ticks all the important boxes, it has the best integration with the rest of the Apple ecosystem, and it simply feels the best, down to the two-finger swipes. If it didn’t have its memory and performance problems with long-running and often-refreshing websites, I would only use Safari.&lt;/p&gt; &lt;p&gt;But because of those problems, I now use two browsers: Safari as my daily driver, and Helium for web development.&lt;/p&gt; &lt;p&gt;A challenger to the throne would have to do everything Safari does, plus the things Safari can’t, such as Zen’s profile switching without needing multiple windows, and Chrome’s developer tools. And until that browser exists, there’s sadly still no perfect browser.&lt;/p&gt;</content><link rel="alternate" href="https://www.loopwerk.io/articles/2026/still-no-perfect-browser/"></link></entry><entry><id>https://www.loopwerk.io/articles/2024/svelte5-safari12/</id><title>Svelte 5 sites don’t work as expected in Safari 12 and 13</title><updated>2024-12-03T19:43:31Z</updated><summary>Quite recently I upgraded a Svelte 4 project to Svelte 5, and soon afterwards I found some problems inside of Safari 12 and 13 that needed a tricky workaround.</summary><content type="html">&lt;p&gt;Quite recently I upgraded a Svelte 4 project to Svelte 5, and at first everything seemed to work perfectly fine. I tested the site in multiple browsers in multiple versions, found no bugs, and deployed to production. Pretty soon after that I started to get complaints that the site’s dropdown menus no longer worked in Safari 12 or Safari 13, so I got an account at &lt;a href="https://www.browserstack.com" target="_blank" rel="noopener"&gt;BrowserStack.com&lt;/a&gt; - a pretty great way to test your site in almost any browser and OS you can think of - and was able to reproduce the issue. Sure enough: when you hovered your mouse over the main menu items, the submenu items no longer became visible.&lt;/p&gt; &lt;p&gt;To figure out what was actually causing the problem I decided to copy my &lt;code&gt;Menu.svelte&lt;/code&gt; component to the &lt;a href="https://svelte.dev/playground/hello-world" target="_blank" rel="noopener"&gt;Svelte Playground&lt;/a&gt;, so that I could easily play around with the CSS and the JavaScript in Safari 12 (using BrowserStack), to see what was causing it, and how to fix it. Sadly Svelte’s Playground only works in Safari 17.6 and up &lt;a href="https://github.com/sveltejs/svelte.dev/issues/911" target="_blank" rel="noopener"&gt;due to missing polyfills&lt;/a&gt;, but even with the polyfills in place only Safari 14 and up would be supported. So then I tried &lt;a href="https://jsfiddle.net" target="_blank" rel="noopener"&gt;JSFiddle&lt;/a&gt;: I copied my component’s HTML and CSS into a new fiddle (leaving out all the Svelte specific logic), opened it up in Safari 12… and JSFiddle also didn’t work. Sigh. Then I found &lt;a href="https://codepen.io" target="_blank" rel="noopener"&gt;CodePen.io&lt;/a&gt; and luckily this did work in Safari 12. But so did my menu. Hovering the mouse over the main menu items revealed the submenu items just fine, no bugs at all. Weird!&lt;/p&gt; &lt;p&gt;Turns out that when you copy the CSS code from your Svelte component, that this isn’t actually the CSS code as your Svelte site gets it. It gets transformed by Svelte, notably it adds those unique identifiers to almost every CSS selector: your &lt;code&gt;li.main-menu&lt;/code&gt; selector gets turned into &lt;code&gt;li.main-menu.svelte-13eihuy&lt;/code&gt; for example. When I inspected the differences between the “pure” CSS code as written in my component and copied into the CodePen (and working fine in Safari 12), and the transformed CSS code as found in my production site, I noticed a very big difference, something that didn’t happen with Svelte 4: Svelte 5 transforms nested CSS selectors by wrapping them in &lt;code&gt;:where()&lt;/code&gt;, which is not supported in Safari 12.&lt;/p&gt; &lt;p&gt;So this:&lt;/p&gt; &lt;pre&gt;&lt;code class="language-css"&gt;&lt;span class="token selector"&gt;li&lt;span class="token class"&gt;.main-menu&lt;/span&gt; ul&lt;/span&gt; &lt;span class="token punctuation"&gt;{&lt;/span&gt; &lt;span class="token property"&gt;display&lt;/span&gt;&lt;span class="token punctuation"&gt;:&lt;/span&gt; none&lt;span class="token punctuation"&gt;;&lt;/span&gt; &lt;span class="token punctuation"&gt;}&lt;/span&gt; &lt;span class="token selector"&gt;li&lt;span class="token class"&gt;.main-menu&lt;/span&gt;&lt;span class="token pseudo-class"&gt;:hover&lt;/span&gt; ul&lt;/span&gt; &lt;span class="token punctuation"&gt;{&lt;/span&gt; &lt;span class="token property"&gt;display&lt;/span&gt;&lt;span class="token punctuation"&gt;:&lt;/span&gt; block&lt;span class="token punctuation"&gt;;&lt;/span&gt; &lt;span class="token punctuation"&gt;}&lt;/span&gt; &lt;/code&gt;&lt;/pre&gt; &lt;p&gt;gets turned into this by Svelte 5:&lt;/p&gt; &lt;pre&gt;&lt;code class="language-css"&gt;&lt;span class="token selector"&gt;li&lt;span class="token class"&gt;.main-menu&lt;/span&gt;&lt;span class="token class"&gt;.svelte-13eihuy&lt;/span&gt; ul&lt;span class="token pseudo-class"&gt;:where&lt;/span&gt;&lt;span class="token punctuation"&gt;(&lt;/span&gt;&lt;span class="token class"&gt;.svelte-13eihuy&lt;/span&gt;&lt;span class="token punctuation"&gt;)&lt;/span&gt;&lt;/span&gt; &lt;span class="token punctuation"&gt;{&lt;/span&gt; &lt;span class="token property"&gt;display&lt;/span&gt;&lt;span class="token punctuation"&gt;:&lt;/span&gt; none&lt;span class="token punctuation"&gt;;&lt;/span&gt; &lt;span class="token punctuation"&gt;}&lt;/span&gt; &lt;span class="token selector"&gt;li&lt;span class="token class"&gt;.main-menu&lt;/span&gt;&lt;span class="token class"&gt;.svelte-13eihuy&lt;/span&gt;&lt;span class="token pseudo-class"&gt;:hover&lt;/span&gt; ul&lt;span class="token pseudo-class"&gt;:where&lt;/span&gt;&lt;span class="token punctuation"&gt;(&lt;/span&gt;&lt;span class="token class"&gt;.svelte-13eihuy&lt;/span&gt;&lt;span class="token punctuation"&gt;)&lt;/span&gt;&lt;/span&gt; &lt;span class="token punctuation"&gt;{&lt;/span&gt; &lt;span class="token property"&gt;display&lt;/span&gt;&lt;span class="token punctuation"&gt;:&lt;/span&gt; block&lt;span class="token punctuation"&gt;;&lt;/span&gt; &lt;span class="token punctuation"&gt;}&lt;/span&gt; &lt;/code&gt;&lt;/pre&gt; &lt;p&gt;Well… shit. One possible solution is to instead write the CSS like this:&lt;/p&gt; &lt;pre&gt;&lt;code class="language-css"&gt;&lt;span class="token selector"&gt;li&lt;span class="token class"&gt;.main-menu&lt;/span&gt; &lt;span class="token pseudo-class"&gt;:global&lt;/span&gt;&lt;span class="token punctuation"&gt;(&lt;/span&gt;ul&lt;span class="token punctuation"&gt;)&lt;/span&gt;&lt;/span&gt; &lt;span class="token punctuation"&gt;{&lt;/span&gt; &lt;span class="token property"&gt;display&lt;/span&gt;&lt;span class="token punctuation"&gt;:&lt;/span&gt; none&lt;span class="token punctuation"&gt;;&lt;/span&gt; &lt;span class="token punctuation"&gt;}&lt;/span&gt; &lt;span class="token selector"&gt;li&lt;span class="token class"&gt;.main-menu&lt;/span&gt;&lt;span class="token pseudo-class"&gt;:hover&lt;/span&gt; &lt;span class="token pseudo-class"&gt;:global&lt;/span&gt;&lt;span class="token punctuation"&gt;(&lt;/span&gt;ul&lt;span class="token punctuation"&gt;)&lt;/span&gt;&lt;/span&gt; &lt;span class="token punctuation"&gt;{&lt;/span&gt; &lt;span class="token property"&gt;display&lt;/span&gt;&lt;span class="token punctuation"&gt;:&lt;/span&gt; block&lt;span class="token punctuation"&gt;;&lt;/span&gt; &lt;span class="token punctuation"&gt;}&lt;/span&gt; &lt;/code&gt;&lt;/pre&gt; &lt;p&gt;And while that worked fine for my &lt;code&gt;Menu&lt;/code&gt; component, I actually found a lot more problems in the site caused by this newly added &lt;code&gt;:where&lt;/code&gt;, and I didn’t want to go through every component in the site to fix them for Safari 12. I wanted to fix this breaking change for all my components in one go.&lt;/p&gt; &lt;p&gt;To be fair, the Svelte 5 migration docs &lt;a href="https://svelte.dev/docs/svelte/v5-migration-guide#Other-breaking-changes-Scoped-CSS-uses-:where()" target="_blank" rel="noopener"&gt;do make a note of this breaking change&lt;/a&gt;. They even mention a workaround:&lt;/p&gt; &lt;p&gt;“In the event that you need to support ancient browsers that don’t implement &lt;code&gt;:where&lt;/code&gt;, you can manually alter the emitted CSS, at the cost of unpredictable specificity changes:”&lt;/p&gt; &lt;pre&gt;&lt;code class="language-javascript"&gt;css &lt;span class="token operator"&gt;=&lt;/span&gt; css&lt;span class="token punctuation"&gt;.&lt;/span&gt;&lt;span class="token method function property-access"&gt;replace&lt;/span&gt;&lt;span class="token punctuation"&gt;(&lt;/span&gt;&lt;span class="token regex"&gt;&lt;span class="token regex-delimiter"&gt;/&lt;/span&gt;&lt;span class="token regex-source language-regex"&gt;:where\((.+?)\)&lt;/span&gt;&lt;span class="token regex-delimiter"&gt;/&lt;/span&gt;&lt;/span&gt;&lt;span class="token punctuation"&gt;,&lt;/span&gt; &lt;span class="token string"&gt;'$1'&lt;/span&gt;&lt;span class="token punctuation"&gt;)&lt;/span&gt;&lt;span class="token punctuation"&gt;;&lt;/span&gt;` &lt;/code&gt;&lt;/pre&gt; &lt;p&gt;Great! My site has always worked fine without that &lt;code&gt;:where&lt;/code&gt; everywhere, so let me just remove it using this oneliner. But where do you put this? It’s absolutely not clear where you should modify the generated CSS.&lt;/p&gt; &lt;p&gt;(Also, “ancient browsers”? What is ancient? What is the cut off where a browser becomes ancient according to Svelte? It would be extremely helpful if they would specifically mention which browsers are supported by them.)&lt;/p&gt; &lt;p&gt;Anyway, after a lot of trial and error and reading through docs of multiple projects, I finally got a working workaround. Inside of &lt;code&gt;vite.config.js&lt;/code&gt;, inside of &lt;code&gt;plugins&lt;/code&gt;, after &lt;code&gt;sveltekit()&lt;/code&gt;, you need to add the following custom plugin:&lt;/p&gt; &lt;pre&gt;&lt;code class="language-javascript"&gt;&lt;span class="token punctuation"&gt;{&lt;/span&gt; &lt;span class="token literal-property property"&gt;name&lt;/span&gt;&lt;span class="token operator"&gt;:&lt;/span&gt; &lt;span class="token string"&gt;"strip-where-selectors"&lt;/span&gt;&lt;span class="token punctuation"&gt;,&lt;/span&gt; &lt;span class="token literal-property property"&gt;enforce&lt;/span&gt;&lt;span class="token operator"&gt;:&lt;/span&gt; &lt;span class="token string"&gt;"post"&lt;/span&gt;&lt;span class="token punctuation"&gt;,&lt;/span&gt; &lt;span class="token function"&gt;transform&lt;/span&gt;&lt;span class="token punctuation"&gt;(&lt;/span&gt;&lt;span class="token parameter"&gt;code&lt;span class="token punctuation"&gt;,&lt;/span&gt; id&lt;/span&gt;&lt;span class="token punctuation"&gt;)&lt;/span&gt; &lt;span class="token punctuation"&gt;{&lt;/span&gt; &lt;span class="token keyword control-flow"&gt;if&lt;/span&gt; &lt;span class="token punctuation"&gt;(&lt;/span&gt;id&lt;span class="token punctuation"&gt;.&lt;/span&gt;&lt;span class="token method function property-access"&gt;endsWith&lt;/span&gt;&lt;span class="token punctuation"&gt;(&lt;/span&gt;&lt;span class="token string"&gt;".css"&lt;/span&gt;&lt;span class="token punctuation"&gt;)&lt;/span&gt;&lt;span class="token punctuation"&gt;)&lt;/span&gt; &lt;span class="token punctuation"&gt;{&lt;/span&gt; &lt;span class="token keyword control-flow"&gt;return&lt;/span&gt; code&lt;span class="token punctuation"&gt;.&lt;/span&gt;&lt;span class="token method function property-access"&gt;replace&lt;/span&gt;&lt;span class="token punctuation"&gt;(&lt;/span&gt;&lt;span class="token regex"&gt;&lt;span class="token regex-delimiter"&gt;/&lt;/span&gt;&lt;span class="token regex-source language-regex"&gt;:where\((.+?)\)&lt;/span&gt;&lt;span class="token regex-delimiter"&gt;/&lt;/span&gt;&lt;span class="token regex-flags"&gt;g&lt;/span&gt;&lt;/span&gt;&lt;span class="token punctuation"&gt;,&lt;/span&gt; &lt;span class="token string"&gt;"$1"&lt;/span&gt;&lt;span class="token punctuation"&gt;)&lt;/span&gt;&lt;span class="token punctuation"&gt;;&lt;/span&gt; &lt;span class="token punctuation"&gt;}&lt;/span&gt; &lt;span class="token keyword control-flow"&gt;return&lt;/span&gt; code&lt;span class="token punctuation"&gt;;&lt;/span&gt; &lt;span class="token punctuation"&gt;}&lt;/span&gt;&lt;span class="token punctuation"&gt;,&lt;/span&gt; &lt;span class="token keyword"&gt;async&lt;/span&gt; &lt;span class="token function"&gt;generateBundle&lt;/span&gt;&lt;span class="token punctuation"&gt;(&lt;/span&gt;&lt;span class="token parameter"&gt;_&lt;span class="token punctuation"&gt;,&lt;/span&gt; bundle&lt;/span&gt;&lt;span class="token punctuation"&gt;)&lt;/span&gt; &lt;span class="token punctuation"&gt;{&lt;/span&gt; &lt;span class="token keyword control-flow"&gt;for&lt;/span&gt; &lt;span class="token punctuation"&gt;(&lt;/span&gt;&lt;span class="token keyword"&gt;const&lt;/span&gt; &lt;span class="token punctuation"&gt;[&lt;/span&gt;key&lt;span class="token punctuation"&gt;,&lt;/span&gt; asset&lt;span class="token punctuation"&gt;]&lt;/span&gt; &lt;span class="token keyword"&gt;of&lt;/span&gt; &lt;span class="token known-class-name class-name"&gt;Object&lt;/span&gt;&lt;span class="token punctuation"&gt;.&lt;/span&gt;&lt;span class="token method function property-access"&gt;entries&lt;/span&gt;&lt;span class="token punctuation"&gt;(&lt;/span&gt;bundle&lt;span class="token punctuation"&gt;)&lt;/span&gt;&lt;span class="token punctuation"&gt;)&lt;/span&gt; &lt;span class="token punctuation"&gt;{&lt;/span&gt; &lt;span class="token keyword control-flow"&gt;if&lt;/span&gt; &lt;span class="token punctuation"&gt;(&lt;/span&gt;asset&lt;span class="token punctuation"&gt;.&lt;/span&gt;&lt;span class="token property-access"&gt;type&lt;/span&gt; &lt;span class="token operator"&gt;===&lt;/span&gt; &lt;span class="token string"&gt;"asset"&lt;/span&gt; &lt;span class="token operator"&gt;&amp;amp;&amp;amp;&lt;/span&gt; key&lt;span class="token punctuation"&gt;.&lt;/span&gt;&lt;span class="token method function property-access"&gt;endsWith&lt;/span&gt;&lt;span class="token punctuation"&gt;(&lt;/span&gt;&lt;span class="token string"&gt;".css"&lt;/span&gt;&lt;span class="token punctuation"&gt;)&lt;/span&gt;&lt;span class="token punctuation"&gt;)&lt;/span&gt; &lt;span class="token punctuation"&gt;{&lt;/span&gt; asset&lt;span class="token punctuation"&gt;.&lt;/span&gt;&lt;span class="token property-access"&gt;source&lt;/span&gt; &lt;span class="token operator"&gt;=&lt;/span&gt; asset&lt;span class="token punctuation"&gt;.&lt;/span&gt;&lt;span class="token property-access"&gt;source&lt;/span&gt;&lt;span class="token punctuation"&gt;.&lt;/span&gt;&lt;span class="token method function property-access"&gt;toString&lt;/span&gt;&lt;span class="token punctuation"&gt;(&lt;/span&gt;&lt;span class="token punctuation"&gt;)&lt;/span&gt;&lt;span class="token punctuation"&gt;.&lt;/span&gt;&lt;span class="token method function property-access"&gt;replace&lt;/span&gt;&lt;span class="token punctuation"&gt;(&lt;/span&gt;&lt;span class="token regex"&gt;&lt;span class="token regex-delimiter"&gt;/&lt;/span&gt;&lt;span class="token regex-source language-regex"&gt;:where\((.+?)\)&lt;/span&gt;&lt;span class="token regex-delimiter"&gt;/&lt;/span&gt;&lt;span class="token regex-flags"&gt;g&lt;/span&gt;&lt;/span&gt;&lt;span class="token punctuation"&gt;,&lt;/span&gt; &lt;span class="token string"&gt;"$1"&lt;/span&gt;&lt;span class="token punctuation"&gt;)&lt;/span&gt;&lt;span class="token punctuation"&gt;;&lt;/span&gt; &lt;span class="token punctuation"&gt;}&lt;/span&gt; &lt;span class="token punctuation"&gt;}&lt;/span&gt; &lt;span class="token punctuation"&gt;}&lt;/span&gt;&lt;span class="token punctuation"&gt;,&lt;/span&gt; &lt;span class="token punctuation"&gt;}&lt;/span&gt;&lt;span class="token punctuation"&gt;,&lt;/span&gt; &lt;/code&gt;&lt;/pre&gt; &lt;p&gt;This transforms the CSS both in the dev server and in created builds, and gets rid of the &lt;code&gt;:where&lt;/code&gt; selector. And now the site works perfectly fine again in “ancient” Safari 12 and 13. Which yes, we still support!&lt;/p&gt;</content><link rel="alternate" href="https://www.loopwerk.io/articles/2024/svelte5-safari12/"></link></entry></feed>