Public: anyone can read this; nobody can change it.
fix(web): kill Chromium white flash between navigations (0.7.55) #13
Check · Review · Land done · Live — Landed; nothing deploys from this branch, so this is the end of its path.
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.
shipped merged
Sign in to join this conversation.
new above
offline
Problem
Trevor sees a white flash between page changes on Chromium at forge.open-platform.sh; Safari does not.
Root cause
@view-transition { navigation: auto; }is enabled (src/web/style/base.ts).--bg) lived only in the external content-hashed stylesheet.htmlhad nobackground— onlybody— 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)insrc/design/themes.ts: tiny nonce’d inline<style>in the page head (before the stylesheet link) settinghtml,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).test/web.test.tsassert 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.