Repository navigation
Keep iOS from blurring the shelf header in the installed app - #6
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 itfixed inset-0meets 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.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.