Safari 15
Tags: apple, safari, ios, pwas
Published: 2021-08-10 16:56:58

---
title: Safari 15
published: true
date: 2021-06-29 15:01:42 UTC
tags: apple,safari,ios,pwas
canonical_url: https://adactio.com/journal/18252
---

If you download [Safari Technology Preview](https://developer.apple.com/safari/technology-preview/) you can test drive features that are on their way in Safari 15. One of those features, announced at Apple’s World Wide Developer Conference, is coloured browser chrome via support for the `meta` value of “theme-color.” Chrome on Android has supported this for a while but I believe Safari is the first desktop browser to add support. They’ve also added support for [the `media` attribute on that `meta` element to handle “prefers-color-scheme.”](https://github.com/whatwg/html/issues/6495)

This is all very welcome, although it does remind me a bit of when Internet Explorer came out with the ability to make coloured scrollbars. I mean, they’re nice features’n’all, but maybe not the most pressing? Safari is still refusing to acknowledge progressive web apps.

That’s not quite true. In [her WWDC video](https://developer.apple.com/videos/play/wwdc2021/10029) [Jen](https://jensimmons.com/) demonstrates how you can add a progressive web app like [<cite>Resilient Web Design</cite>](https://resilientwebdesign.com/) to your home screen. I’m chuffed that my little web book made an appearance, but when you see _how_ you add a site to your home screen in iOS, it’s somewhat depressing.

The steps to add a website to your home screen are:

1. Tap the “share” icon. It’s not labelled “share.” It’s a square with an arrow coming out of the top of it.
2. A drawer pops up. The option to “add to home screen” is nowhere to be seen. You have to pull the drawer up further to see the hidden options.
3. Now you must find “add to home screen” in the list

- Copy
- Add to Reading List
- Add Bookmark
- Add to Favourites
- Find on Page
- Add to Home Screen
- Markup
- Print

It reminds of this exchange in <cite>The Hitchhiker’s Guide To The Galaxy</cite>:

> “You hadn’t exactly gone out of your way to call attention to them had you? I mean like actually telling anyone or anything.”
> 
> “But the plans were on display…”
> 
> “On display? I eventually had to go down to the cellar to find them.”
> 
> “That’s the display department.”
> 
> “With a torch.”
> 
> “Ah, well the lights had probably gone.”
> 
> “So had the stairs.”
> 
> “But look you found the notice didn’t you?”
> 
> “Yes,” said Arthur, “yes I did. It was on display in the bottom of a locked filing cabinet stuck in a disused lavatory with a sign on the door saying ‘Beware of The Leopard.’”

Safari’s current “support” for adding progressive web apps to the home screen feels like the minimum possible …just enough to [use it as a legal argument](https://youtu.be/H6eYLCxxQdA?t=306) if you happen to be litigated against for having a monopoly on app distribution. “Hey, you can always make a web app!” It’s true in theory. In practice it’s …suboptimal, to put it mildly.

Still, [those coloured tab bars are very nice](https://adactio.com/notes/18229).

It’s a little bit weird that this stylistic information is handled by HTML rather than CSS. It’s similar to the `meta` `viewport` value in that sense. I always that the plan was to migrate that to CSS at some point, but here we are a decade later and it’s still very much part of our boilerplate markup.

Some people have remarked that the coloured browser chrome can make the URL bar look like part of the site so people might expect it to operate like a site-specific search.

I also wonder if it might blur [“the line of death”](https://textslashplain.com/2017/01/14/the-line-of-death/); that point in the UI where the browser chrome ends and the website begins. Does the unified colour make it easier to spoof browser UI?

Probably not. You can already kind of spoof browser UI by using the right shade of grey. Although the removal any kind of actual _line_ in Safari does give me pause for thought.

I tend not to think of security implications like this by default. My first thought tends to be more about how I can use the feature. It’s only after a while that I think about how bad actors might abuse the same feature. I should probably try to narrow the gap between those thoughts.