Public: anyone can read this; nobody can change it.

fix(web): kill Chromium white flash between navigations (0.7.55) #13

Merged opened this view on origin

Check · Review · Land done · Live — Landed; nothing deploys from this branch, so this is the end of its path.

Merged

Trevor sees a white flash between page changes on Chromium at forge.open-platform.sh; Safari does not. Cross-document @view-transition { navigation: auto; } is enabled (src/web/style/base.ts). Theme canvas (--bg) lived only in the external content-hashed stylesheet.

Notes

shipped merged

opened this view on origin

Problem

Trevor sees a white flash between page changes on Chromium at forge.open-platform.sh; Safari does not.

Root cause

  1. Cross-document @view-transition { navigation: auto; } is enabled (src/web/style/base.ts).
  2. Theme canvas (--bg) lived only in the external content-hashed stylesheet.
  3. html had no background — only body — so Chromium’s unstyled / view-transition root frame paints the UA default (white) before CSS applies. Safari often keeps the prior paint, so the flash is Chromium-biased.

Fix

  • bootCss(theme) in src/design/themes.ts: tiny nonce’d inline <style> in the page head (before the stylesheet link) setting html,body { background-color; color-scheme } for the active theme, or the system light/dark pair.
  • html { background: var(--bg); } in the stylesheet so the view-transition root matches body after CSS loads.
  • releases.json → 0.7.55 (migrations still 70).
  • Tests in test/web.test.ts assert the boot style for system + midnight.

Live

After merge: tag v0.7.55 + gitops pin if release path is clear; otherwise merge alone and leave tag/pin to follow-up.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs