Skip to content

feat(web): /pwa-lab variant J — Test 4's body inside Folio, in-app nav vs reload - #1013

Closed
mbryantms wants to merge 1 commit into
mainfrom
feat/pwa-lab-j
Closed

mbryantms wants to merge 1 commit into
mainfrom
feat/pwa-lab-j

Conversation

@mbryantms

Copy link
Copy Markdown
Owner

Round 2 (#1011) on the iPad: Tests 4–7 were all clean, including Test 4
with Folio's manifest (display-mode: standalone true) on top of Folio's
apple-* + theme-color tags. No head-tag combination reproduces the fade,
so the cause is in the page itself. Yet lab pages A–C (inside Folio)
faded, and a browser replay of WebKit's edge sample on lab B lands on its
solid black fixed bar with nothing over it, so no layout element is
hijacking the sample.

The structural differences left are how Folio pages are reached
(client-side navigation into a Next.js app vs a fresh document load from
the Home Screen) and that lab A–C were scrolled by script, not by hand.
J is Test 4's body exactly (sticky #374151 header, black page, document
scroll), not pre-scrolled, with a Reload button that re-opens it as a
fresh document:

  • fades after in-app nav, clean after Reload -> navigation is the trigger
  • fades both ways -> something in Folio's runtime; bisect the root layout
  • clean both ways -> specific to MainShell's header / ReaderChrome

…v vs reload

Round 2 (#1011) on the iPad: Tests 4–7 were all clean, including Test 4
with Folio's manifest (display-mode: standalone true) on top of Folio's
apple-* + theme-color tags. No head-tag combination reproduces the fade,
so the cause is in the page itself. Yet lab pages A–C (inside Folio)
faded, and a browser replay of WebKit's edge sample on lab B lands on its
solid black fixed bar with nothing over it, so no layout element is
hijacking the sample.

The structural differences left are how Folio pages are reached
(client-side navigation into a Next.js app vs a fresh document load from
the Home Screen) and that lab A–C were scrolled by script, not by hand.
J is Test 4's body exactly (sticky #374151 header, black page, document
scroll), not pre-scrolled, with a Reload button that re-opens it as a
fresh document:

- fades after in-app nav, clean after Reload -> navigation is the trigger
- fades both ways -> something in Folio's runtime; bisect the root layout
- clean both ways -> specific to MainShell's header / ReaderChrome
@mbryantms

Copy link
Copy Markdown
Owner Author

Superseded by the reader viewport fix; the latch explains the lab fades without this variant.

@mbryantms mbryantms closed this Oct 4, 2026
@mbryantms
mbryantms deleted the feat/pwa-lab-j branch October 4, 2026 21:27
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