Your site did not change. Your CSS did not change. You shipped the same footer you have shipped for two years, and on an iPhone running iOS 26 it now floats above a white band, or hides behind a translucent toolbar, or drags a grey rectangle across the bottom of the screen.
Welcome to Liquid Glass.
The short version: Safari 26 stopped reading theme-color and started sampling the colours in your page instead. Your layout is now part of the browser's chrome, whether you designed it that way or not. Elements you consider decoration, like a fixed bar or a closed modal, are inputs to an algorithm you cannot see.
This guide covers what actually changed, the five ways it breaks real pages, the CSS shape that survives it, and how to verify a fix in minutes instead of waiting for a user to report a white bar.
What Safari 26 Actually Changed
For a decade, theme-color was the contract. You declared a colour, the browser tinted its own UI with it, and the two stayed out of each other's way.
Safari 26 breaks that contract in three ways.
theme-color is ignored. It is still valid for older browsers and still harmless, but on iOS 26 it no longer drives the toolbar tint.
Safari samples your page instead. It reads the CSS background colour at a fixed point near the top of the page, a fixed point near the bottom, across most of the viewport width. Community reverse engineering put the sample points at roughly 4px from the top, 3px from the bottom, over about 80% of the width. Apple has not documented this.
The sample is composited, not parsed. This is the part that catches people out. Safari is not reading your design intent. It is looking at what the compositor believes is painted at those points, which means elements you think are invisible can still contribute a colour.
The WebKit bug for the fixed-position interaction was closed as by design. That is the tell: this is not a regression waiting for a patch. It is the new model, and your page has to work inside it.
If your mental model is "the browser chrome sits outside my page", it needs updating. On iOS 26, Safari's toolbar is partly a mirror of your CSS.
The Five Ways It Breaks Real Pages
Almost every report falls into one of these. If you are triaging a bug right now, start by matching the symptom.
| What you see | What is actually happening |
|---|---|
| A white or black band under the bottom toolbar | html or body has a transparent background, so the sample falls back to white |
| Your fixed footer is hidden behind the glass | The footer sits in the area the toolbar occupies, and has no safe-area padding |
| A grey or tinted rectangle appears at the bottom | A fixed or sticky element carries its own background-color, and gets sampled |
| The tint is wrong after closing a modal | The closed modal is still opacity: 0, which still composites |
| The page jumps or the bar detaches while scrolling | body { overflow: hidden } is preventing Safari from compositing real pixels |
Two of these are colour bugs and three are layout bugs. They are worth separating, because the fixes are different and one often masks the other.
The Fix, Layer by Layer
Work through these in order. Each one is small, and together they are the shape that survives iOS 26.
1. Declare the viewport correctly
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
Without viewport-fit=cover, your page never extends under the toolbar, so you cannot paint the colour Safari wants to sample. Most modern templates already have this. Check anyway, because a template that lacked it for years will not have failed visibly until now.
2. Give the root an explicit colour
html {
background-color: #0f172a; /* a real value, not transparent */
min-height: 100%;
}
body {
background-color: #0f172a;
margin: 0;
}
This single change fixes the white-band class of report. A transparent root gives the sampling algorithm nothing, and the fallback is white. Note that at scrollY: 0 Safari samples the background colour, not a hero image or video, so a full-bleed photo will not tint the status area on its own.
3. Never put the glass on the fixed element
This is the fix most teams miss. A fixed or sticky element with a background-color or backdrop-filter of its own becomes part of the sample.
/* Wrong: the fixed element itself is sampled */
.site-footer {
position: fixed;
bottom: 0;
background: rgba(15, 23, 42, 0.72);
backdrop-filter: blur(18px);
}
/* Right: transparent parent, visual on an absolute child */
.site-footer {
position: fixed;
inset: auto 0 0 0;
background: transparent;
backdrop-filter: none;
}
.site-footer__glass {
position: absolute;
inset: 0;
background: rgba(15, 23, 42, 0.72);
backdrop-filter: blur(18px);
z-index: -1;
}
Same visual result, completely different sampling behaviour. Your footer still looks like glass; it just stops telling Safari what colour to paint its chrome.
4. Pad for the safe area, not for the toolbar
.site-footer {
padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 12px);
}
env(safe-area-inset-bottom) is what the home indicator and the toolbar actually consume. Hardcoding padding-bottom: 16px works on one device and fails on the next. This is the same trap that makes safe-area testing on a desktop preview unreliable, which is why it deserves its own pass before sign-off.
5. Close overlays with display: none
.modal[aria-hidden="true"] {
display: none;
}
opacity: 0 plus pointer-events: none still composites, and a composited element can still tint the toolbar. If you animate a close, animate first and then set display: none on transitionend.
6. Do not lock the body
/* Avoid this for full-screen app shells */
body { overflow: hidden; }
Safari's compositor needs the document to be genuinely scrollable to paint real pixels behind its chrome. A body lock is the most common cause of a bar that detaches mid-scroll. Block gestures inside your app shell instead, and leave the document scrollable.
7. Full-screen media needs a runway
For an image or video that must bleed edge to edge, extend the media layer above and below the visual viewport, then pull your controls back inward with safe-area padding. A small non-zero scroll offset on load is what lets Safari composite real content behind the status area.
None of these are elegant. All of them are reversible, and together they remove the whole class of failure.
Why 100dvh and viewport-fit=cover Were Never the Fix
There is a persistent belief that adding 100dvh solves mobile viewport problems. It solves one specific problem: the old 100vh bug where the unit ignored the collapsing toolbar and gave you a page taller than the screen.
dvh measures the visual viewport. It knows nothing about what Safari paints in its chrome. When Safari decides your fixed footer should tint the toolbar grey, 100dvh has no opinion about it, because that decision happens outside the CSS box model you control.
That is the distinction worth holding on to: dynamic viewport units fix height, safe-area insets fix clearance, and root colour plus absolute-child glass fix chrome. Three different problems that all look like "the bottom of my page is wrong".
The same confusion shows up with keyboard handling, where developers reach for dvh when the real issue is the visual viewport shrinking while the layout viewport does not. If that is your bug, the DPR and viewport blind spot is a better starting point than another height tweak.
Catch It in Four Minutes, Without a Phone
You cannot reproduce Liquid Glass sampling off-device. You can reproduce every layout condition that turns a sampling quirk into a visible bug, and those are the ones that ship.
1. Load the page in a real device profile. Pick the iPhone you support, not a generic 390px window. Each Emuluxe profile carries its physical screen size, aspect ratio, safe-area insets, browser chrome height, device pixel ratio, notch or Dynamic Island, and user agent. A footer padded for 34px of home indicator behaves differently on a device with 21px and a taller toolbar.
2. Turn the browser chrome on. This is the step most people skip. With the simulated Safari bottom bar visible, your footer competes for the same pixels it competes for on a phone. Emuluxe mirrors the iOS Safari bottom bar including its scroll-driven collapse, and recalculates env(safe-area-inset-bottom) as that bar expands and contracts, so the clearance your CSS asks for is the clearance it gets.
3. Rotate, then scroll to both ends. Orientation changes recompute the safe-area insets. Scrolling to the bottom is where a footer either clears the toolbar or hides under it. Do both before you conclude the fix works.
4. Check the root colour at scroll position zero. If html or body is transparent, the top of the page is the first place the white fallback appears. That one is visible in the simulator because it is pure CSS.
| What this catches | What it cannot |
|---|---|
| Footer hidden behind browser chrome | The exact colour Safari paints its toolbar |
| Missing or hardcoded safe-area padding | Liquid Glass sampling of fixed elements |
| Transparent root falling back to white | Native keyboard accessory bar behaviour |
| Layout at real DPR and device width | Real GPU compositing and paint timing |
| Orientation and scroll extremes | Device-specific performance |
That is the honest split. The left column is where most reports come from, and all of it is checkable in seconds. The right column is native behaviour that no simulation, Apple's own Xcode Simulator included, reproduces faithfully.
One field write-up on Safari 26 put it plainly: the simulator does not reproduce half of these issues. That is not a reason to skip simulation. It is a reason to give it the right job.
Make Your AI Agent Verify It Instead of Guessing
This is where the Liquid Glass bug gets interesting for anyone shipping with an AI coder.
An agent reading your diff sees position: fixed; bottom: 0 and concludes the footer is pinned correctly. It is. The bug is not in the CSS you wrote, it is in how the browser composites it, and there is no line in the repository that says so. An agent will happily regenerate that footer five times.
The fix is to put a render in the feedback loop, not a description of one.
Start the session from the CLI:
npx @emuluxe/cli start https://localhost:3000
That opens a high-fidelity device session for the URL you are working on. From there the agent has something to look at.
Then hand it this prompt:
You are fixing an iOS 26 Safari Liquid Glass layout bug. The page is loaded in an
Emuluxe iPhone device profile with the Safari bottom bar visible.
Symptoms to verify, in this order:
1. Fixed footer is fully visible above the bottom toolbar, not behind it.
2. No white, black or blue band appears below the footer at scrollY = 0.
3. Closing the modal removes it from the render, not just from the pointer path.
4. Nothing changes visually when the page is scrolled to the bottom.
Rules:
- Do not put background-color or backdrop-filter on a fixed or sticky element.
Put the visual treatment on an absolutely positioned child.
- The root html and body must have an explicit background color.
- Safe-area clearance uses env(safe-area-inset-bottom), never a hardcoded px.
- Re-render and check all four symptoms after each change. Do not report done
until you have seen the render.
The last rule is the whole point. "Do not report done until you have seen the render" turns a coding agent from a confident guesser into something that can close its own loop. With the MCP server connected, the agent launches the simulation and inspects the result itself, instead of asking you to describe a screenshot.
This is the same pattern that makes agents useful for any visual bug: the loop has to include the output. The agentic coding blind spot is really a feedback problem, and Liquid Glass is the sharpest example of it, because the failure is invisible in source and obvious in a render.
When Only a Real iPhone Will Do
Some of this is genuinely native. Toolbar tinting, the keyboard accessory bar, GPU compositing, the exact pixel Safari samples. Those need the OS.
App Mode covers that half without leaving the same workspace: a real iOS simulator or a USB-connected phone streams into the same device frame, and taps, swipes and typing you make in the frame execute on the device.
The distinction from its own documentation is worth repeating, because it is the difference between a useful tool and a false claim:
| Property | Faithful in App Mode? |
|---|---|
| Layout, safe areas, DPR | Yes, streamed from the real device |
| OS-version behaviour | Yes, it is the real OS |
| Adaptive layout bugs, accessibility labels | Yes, real UI tree |
| Frame pacing, camera, thermals, battery | No, and not claimed |
So the workflow has two stages. Web simulation filters the class of bug in seconds, and App Mode confirms the native chrome on the device that actually renders it. Doing the second before the first is how teams end up testing one iPhone instead of ten.
If you are still deciding how much of your QA can move into simulation, why viewport resizing is not device testing covers where the line falls.
Pre-Ship Checklist
Run this before any mobile-facing release. It takes less time than reading the bug report you would otherwise get.
-
viewport-fit=coverpresent in the viewport meta tag -
htmlandbodyboth have an explicitbackground-color - No fixed or sticky element carries its own
background-colororbackdrop-filter - Glass treatment lives on an absolute child
- Footer clearance uses
env(safe-area-inset-bottom, 0px) - Closed overlays use
display: none, notopacity: 0 - No
body { overflow: hidden }on full-screen shells - Full-screen media has a top and bottom bleed, with controls padded back inward
- Verified at scroll top, scroll bottom, and after an orientation change
- Verified on at least one iOS and one Android profile with chrome visible
If you are shipping with agents, add one more: the agent has seen the render, not just the diff.
Common Questions
Does this affect Android?
Not the same way. Chrome on Android reads theme-color and does not sample page content for its toolbar, so the white-band and tinted-rectangle reports are iOS-specific. The layout half, fixed footers colliding with browser chrome and safe areas, applies to both platforms. Testing one and assuming the other is how a green build ships a broken bar.
Is it safe to leave theme-color in place?
Yes. Keep it for older browsers and other platforms. It is simply no longer what controls the tint on iOS 26, so it cannot be your only defence.
Why did this start after an OS update, not a deploy?
Because the contract changed on the browser side. Nothing in your pipeline moved. That also means your usual regression signals, screenshots taken in a desktop browser and tests that assert class names, stay green while the bug ships. The only signal that catches it is a render at device viewport with browser chrome visible.
How do I find which element is tinting the toolbar?
Bisect. Set display: none on each fixed or sticky element in turn and watch the toolbar. Start with anything that spans the full width at the very top or very bottom of the document, because those are the elements closest to the sampling points. The usual culprit is a bar you consider decorative, like a cookie banner or a closed drawer.
Should I remove backdrop-filter entirely?
No. Glass is not the problem. Glass on the sampled element is. Moving the same effect to an absolute child keeps the design and removes the interaction.
Does this affect PWAs opened from the home screen?
Partly. A standalone web app has no Safari toolbar, so the sampling problem is smaller, but the status area and safe-area insets still apply, and a body lock is still the most common cause of a bar that detaches. Keep the explicit root colour and the safe-area padding in both modes.
Get Started Today
If a footer broke this week and you would rather see it than guess at it, the fastest path is a device profile with the browser bar switched on.
Install Emuluxe Chrome Extension - Test your app with high-fidelity device simulation in your development workflow.
Install Emuluxe VS Code Extension - Integrate device simulation directly into your VS Code development environment.
Explore Emuluxe MCP Server - Let AI agents launch simulations and verify mobile UI automatically.
