Apple has a private CSS property to add Liquid Glass effects to web content

https://alastair.is/apple-has-a-private-css-property-to-add-liquid-glass-effects-to-web-content

Yes it works and no, we can't

Before you, like me, fire up Safari and start editing some CSS, I have bad news: no, it doesn't work on the web. As well it shouldn't. But it also doesn't work by default in an app using WKWebView, you have to toggle a setting in WKPreferences called useSystemAppearance... and it's private. So if you use it, say goodbye to App Store approval.

Who cares?

It's an interesting piece of trivia but no-one outside of Apple can use it.

… ffs 🤦

3 points · 2 comments · view on lemmy.world

2 Comments

chickenf622@sh.itjust.works · 1 pts · 334d (1 reply)

You goofed the URL, I think, it gives a 404 when I click on it. Here's the correct one https://alastair.is/apple-has-a-private-css-property-to-add-liquid-glass-effects-to-web-content/. So is apple maybe gonna give us PWAs?

Oberyn@lemmy.world · 1 pts · 334d

My bad , didn't realise . Just copied it from my browser thought it should (EDIT : should work now)

Also IDK , don't follow Apple very closely