Skip to content

feat(web): /pwa-lab — test pages for the iOS/iPadOS status-bar fade - #1004

Merged
mbryantms merged 1 commit into
mainfrom
feat/pwa-lab
Oct 4, 2026
Merged

mbryantms merged 1 commit into
mainfrom
feat/pwa-lab

Conversation

@mbryantms

Copy link
Copy Markdown
Owner

A throwaway diagnostic surface, unlinked from the app and marked
noindex. Five variants, each isolating one hypothesis about what the
system draws into the installed app's status-bar strip (#994, #995, #999
and its revert #1003 all tried in-page fixes; the fade lives above the
page, showing blurred page content):

A page scroll, colour to the top (baseline)
B page scroll + fixed 56px solid-black bar
C document never scrolls; full-screen inner scroller
D inner scroller below a static 56px black block
E page scroll, tall static black block first (at rest vs scrolled)

Each variant pre-scrolls 400px (except E), uses saturated labelled rows
so any blur is obvious, and docks a geometry readout at the BOTTOM
(standalone detection, inner vs screen size, visualViewport,
env(safe-area-inset-top), --safe-top, scrollY) so screenshots carry the
measurements. Inner-scroller variants lock document scroll and restore
it on leave.

Delete app/[locale]/pwa-lab + lib/pwa-lab.ts once the fade is
understood.

A throwaway diagnostic surface, unlinked from the app and marked
noindex. Five variants, each isolating one hypothesis about what the
system draws into the installed app's status-bar strip (#994, #995, #999
and its revert #1003 all tried in-page fixes; the fade lives above the
page, showing blurred page content):

A  page scroll, colour to the top (baseline)
B  page scroll + fixed 56px solid-black bar
C  document never scrolls; full-screen inner scroller
D  inner scroller below a static 56px black block
E  page scroll, tall static black block first (at rest vs scrolled)

Each variant pre-scrolls 400px (except E), uses saturated labelled rows
so any blur is obvious, and docks a geometry readout at the BOTTOM
(standalone detection, inner vs screen size, visualViewport,
env(safe-area-inset-top), --safe-top, scrollY) so screenshots carry the
measurements. Inner-scroller variants lock document scroll and restore
it on leave.

Delete `app/[locale]/pwa-lab` + `lib/pwa-lab.ts` once the fade is
understood.
@mbryantms
mbryantms merged commit 80e8cef into main Oct 4, 2026
15 checks passed
@mbryantms
mbryantms deleted the feat/pwa-lab branch October 4, 2026 18:15
mbryantms added a commit that referenced this pull request Oct 4, 2026
… navigation (#1014)

The installed iPadOS app latches the first runtime change to the
theme-color / color-scheme metas: the status-bar strip switches from the
top bar's solid colour to a blur of the scrolled page content and stays
that way on every route until the app is force-quit. Folio hit this on
iPadOS 26.1 and fixed it for the explicit dark theme only (reader
viewport byte-identical to the root); light, amber and system themes kept
a reader-specific black viewport. With theme = system and the OS in light
mode on iPadOS 27.0.1, every visit to the reader flipped the strip, which
also explains why the lab pages (#1004, #1008, #1013) faded inside Folio
while the standalone test apps (#1009, #1011) never did.

The reader route now has no generateViewport at all and inherits the
root's. On iPadOS the strip takes its colour from the sticky header /
reader chrome, not theme-color (verified: a #000 theme-color test page
still showed the header colour), so nothing is lost there; on Android a
light-theme reader shows the theme's status-bar colour instead of black.

Follow-up, not in this change: standalone web apps freeze
prefers-color-scheme at launch, so with theme = system the app can stay
dark after the OS switches to light until a page re-resolves it.
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