Skip to content

Keep iOS from blurring the shelf header in the installed app - #6

Merged
picapica52 merged 1 commit into
mainfrom
fix-ios-header-blur
Sep 26, 2026
Merged

picapica52 merged 1 commit into
mainfrom
fix-ios-header-blur

Conversation

@picapica52

Copy link
Copy Markdown
Contributor

Problem

Opened from the Home Screen, iOS 26 and later draw the Liquid Glass scroll edge effect over the top of the web view. On iOS 27 it reaches far enough to wash out the shelf header's icon and title.

Fix

No CSS property or meta tag turns the effect off. WebKit skips it when a fixed or sticky box with a background colour covers the top edge (taller than 10px, at least 90% of the width), and uses that colour instead. The shelf frame (ScreenFrame) already fills the screen with the background colour, so making it fixed inset-0 meets that check without changing the layout. It covers both the shelf and the shelf setup screens.

Tried and dropped

  • apple-mobile-web-app-status-bar-style: no effect on the blur.
  • A fixed strip sized to safe-area-inset-top: the inset is 0 in the installed app, because the web view already starts below the status bar.

Testing

Checked in the iOS 27 simulator, installed to the Home Screen, on iPhone and iPad: the header is as sharp as in Safari.

Opened from the Home Screen, iOS 26 and later draw the Liquid Glass
scroll edge effect over the top of the web view, and on iOS 27 it
reaches far enough to wash out the shelf header's icon and title.

No CSS property or meta tag turns the effect off. WebKit skips it when
a fixed or sticky box with a background colour covers the top edge
(taller than 10px, at least 90% of the width), and uses that colour
instead. The shelf frame already fills the screen with the background
colour, so making it `fixed inset-0` meets that check without changing
the layout.

Setting apple-mobile-web-app-status-bar-style was tried first and had
no effect on the blur. A strip sized to the safe-area inset did not
help either: in the installed app the inset is 0, since the web view
already starts below the status bar.

Checked in the iOS 27 simulator on iPhone and iPad.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant