惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

K
Kaspersky official blog
小众软件
小众软件
Engineering at Meta
Engineering at Meta
博客园 - 三生石上(FineUI控件)
WordPress大学
WordPress大学
G
Google Developers Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
V
V2EX
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Google DeepMind News
Google DeepMind News
Security Archives - TechRepublic
Security Archives - TechRepublic
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
C
Check Point Blog
aimingoo的专栏
aimingoo的专栏
罗磊的独立博客
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
MongoDB | Blog
MongoDB | Blog
L
LINUX DO - 热门话题
酷 壳 – CoolShell
酷 壳 – CoolShell
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
H
Help Net Security
Martin Fowler
Martin Fowler
G
GRAHAM CLULEY
Simon Willison's Weblog
Simon Willison's Weblog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
博客园 - Franky
V
Vulnerabilities – Threatpost
云风的 BLOG
云风的 BLOG
博客园_首页
C
Cybersecurity and Infrastructure Security Agency CISA
量子位
Stack Overflow Blog
Stack Overflow Blog
Recent Announcements
Recent Announcements
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
I
Intezer
Scott Helme
Scott Helme
A
About on SuperTechFans
博客园 - 司徒正美
Hacker News: Ask HN
Hacker News: Ask HN
The GitHub Blog
The GitHub Blog
Forbes - Security
Forbes - Security
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
博客园 - 聂微东
人人都是产品经理
人人都是产品经理
The Cloudflare Blog
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
Spread Privacy
Spread Privacy
T
Tailwind CSS Blog
S
Security Affairs
宝玉的分享
宝玉的分享

Ben Frain

So, you want a React modal that uses the <dialog> element and transitions in AND out? Scroll indicators on tables with background colours using animation-timeline Review: SoundPEATS Clip1 Open ear clip-on headphones VS Code – highlight just the active indent guide Review: MoErgo Go60, a split ergonomic and fully programmable keyboard Review: Kinesis mWave mechanical ergonomic and programmable keyboard New Book: Responsive Web Design with HTML5 and CSS, 5th Edition Use @supports with a proxy feature/value for features you can’t test for (@starting-style) First adventures in View Transitions Review: Benq Screenbar Pro and Halo lightbars. The kit you never knew you needed! Center items in a container, and make then left aligned when they overflow A single element CSS donut timer/countdown timer, that can sit on any background Review: Open Ear Headphones – Bose Open Ultra v Huawei FreeClip In search of the perfect autocomplete for CSS Managing multiple versions of node, without NVM or additional tools Review: Keychron Q14 Max Alice 96 Key mechanical keyboard NEW VIDEO COURSE: Responsive Web Design with HTML5 and CSS Is CSS Grid really slower than Flexbox? Review: Advantage360 Pro Signature Edition 2024 mechanical ergonomic keyboard More Keys or Fewer Keys for mechanical keyboards Yes! You can use position: sticky and overflow together Neovim – how to do project-wide find and replace? Review: Keyboardio Model 100, split, wooden, mechanical keyboard Struggling to learn SwiftUI How to create rounded gradient borders with any background in CSS How to get equal size icons in the cmp completion menu of Neovim with Kitty terminal Review: Dygma Defy, split, mechanical, programmable ergonomic keyboard What’s the best way to reset WAAPI chained animations? Using CSS @property inside shadowRoot (web components) workaround Dynamically create a ref for items when iterating over them in lit.dev templates Selecting and pausing running animations in Lit Web Components New Web APIs — a popover on top of a dialog element can’t be interacted with? Review: ZSA Voyager, split, mechanical keyboard Russel Brand, narcissism, and a sadly common pattern… When it comes to text editors, I feel like Goldilocks Simple settings for writing and converting markdown with Sublime Text Review: The ZSA Platform tenting kit for the Moonlander keyboard Logitech MX Master 3/3s scroll wheel fix Building a line graph with CSS clip-mask Review: Dell 6K 32″ Monitor U3224KBA I broke my keyboard! Swapping the key switches in the Kinesis Advantage360 Pro HUGE macOS Productivity boost: Set-up simple, keyboard only, instant App switching and arrangement Adding to $PATH for a central location for Neovim/NPM tools Neovim Power Tips: Volume 2 Review: MoErgo Glove80, split, wireless, columnar ergonomic keyboard with RGB Review: Kinesis Advantage 360 Pro — split ergo mechanical keyboard Review: Dactyl Manuform – an ergonomic, custom built mechanical keyboard How to animate along an SVG path at the same time the path animates? Getting the context of Web Components (lit)
iOS26 Safari theme-color/tab-tinting with fixed position elements is a mess
Ben Frain · 2025-11-16 · via Ben Frain

In iOS26, Safari dropped support for/broke theme-color; the meta tag you coud add to your head to get colored bits at the top and bottom of your websites.

This matters because their current manner of providing the appropriate color for tab-tinting doesn’t work either.

Aside: You could also set the theme color value in the Web Application site.webmanifest file as a “theme_color” key, but the meta tag would supercede that value.

Some things to bring you up to speed.

In iOS26, when you add a website to your homepage, with a (not so slick) Share > More… > Add to Home Screen, by default that web page will open as a ‘web app’ with the minimum chrome and no URL bar. You no longer need to have a site.webmanifest file at the root of the website, or the <meta name='apple-mobile-web-app-capable'> tag in your head.

In order for things like env(safe-area-inset-bottom) to work in CSS, ensure your viewport meta tag has the cover part in, <meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">.

By default, that tint color is taken from the background color of the body. Except when you show a fixed position element. That’s where things ‘go south’ as iOS then tries to use the background-color of the fixed position element to color the ‘forehead’ and ‘chin’.

It’s particularly annoying when you try to use something like popover, or dialog. The reduction I am showing uses popover. and you can see that the ‘tint’ takes on the color of the fixed element, which I certainly don’t want.

So, open my bug report and click the reduction in a iOS26.1 device or the iOS Simulator, add it to homescreen and then open it up, click the button and see the top/bottom areas change color to match the modal/fixed position element. Yes, that.

safari error on iPhone simulator
26.1 shows the background color of fixed position elements

Attempted workaround

I intended to workaround the issue in the mean time by setting a background-color on the fixed elements, the same as the color I want my header/tab-tint, and then adding a background-image: linear-gradient() with two color stops the color I actually want the background of my popup/dialog. Sadly, that doesn’t work, it actually somewhat worse as you do get that color, but the main content of the site sits within the safe area, so a nice semi-transparent ::background on dialog or popover just looks horrid.

I’m afraid I’m out of ideas other than waiting for WebKit to fix it. Here is the bug I opened on WebKit: https://bugs.webkit.org/show_bug.cgi?id=302272 but that got marked as a duplicate of https://bugs.webkit.org/show_bug.cgi?id=300965 which is now marked as resolved. So that’s good news. Maybe iOS 26.2 will have the fix.

In the meantime, I encourage you to go and read the latter as it’s quite funny and although I would not approach things in the manner that poster did, I couldn’t help but agree with the sentiment.

"You should be ashamed of yourself shipping this garbage at 3+ trillion at capitalization"