Glass still flickers on bar morphs and hover changes (app and mockup) #287
Closed
opened 2026-10-14 13:41:17 +00:00 by kayg
·
5 comments
No Branch/Tag specified
main
port/tasks-float-2
fix/train-1116-2
fix/train-1116-3
fix/train-1116-1
fix/flake-1134
fix/server-1182
dev
port/notes-float-3c
docs/auto-update-ig
feat/dav-transport
port/tasks-float-1
wip/mail1011-sv-order-1116
fix/flake-1179
fix/flake-1178
fix/guards-1153-fsio-split
fix/guards-1153-notes-split-we
fix/guards-1153-notes-lib
fix/guards-1153-notes-home
fix/guards-1153-ui-primitives
fix/guards-1153-primitives-e2e
fix/guards-1153-visibility-doc
feat/paper-grey-1116
fix/flake-1165
fix/flake-1119
docs/imap-766-plan-v2
fix/e2e-unique-ports
t3/paged-search-reconcile-final
wip/mail1011-final-1115
docs/tasks-float-port
perf/editor-first-paint-1c
feat/imap-notes-fetch
feat/imap-notes-projection
feat/imap-notes-readonly
feat/imap-notes-auth
feat/imap-notes-server-foundation
wip/mail1011-txn-ownvocab-1115
wip/mail1011-txn-novocab-1115
perf/p1117-final-harness
perf/single-shot-repeats
port/tasks-matrix
wip/mail1011-txn-1115
fix/static-gates-1155
feat/files-s1-identity-r7
fix/files-r7-idle-loop
fix/daily-train-1152
port/notes-float
fix/editor-tables-test-types
port/notes-float-listscript
feat/tasks-actions
port/notes-float-phone-preload
perf/sound-comparator
port/notes-float-listscroll
port/notes-float-budgets
port/notes-float-suite-fix-b
port/notes-float-sidebar-fix
port/notes-float-trim
port/notes-float-3-lists
fix/attachments-meta-capability
docs/carddav-writes-v2-plan
feat/contacts-companion-pure
issue/carddav-read-perf-fix-r2
issue/carddav-read-r2
port/notes-float-devsync2
review/calendar-2
review/switcher-a-pills
port/notes-float-switcher-a
port/port-tables-2
review/switcher-ends
wip/whiteboard-s1-1114
port/port-tables
wip/mail1011-perfneutral
review/photo-tint
port/notes-float-shell
wip/local/collections-db
wip/local/mail-p1
wip/local/cold-growth-on-tiering
wip/local/tiering-v3-s1
wip/local/wal1051-cap
wip/local/tiering-v3-s1-resume
wip/local/index-position-startup-scan
port/notes-float-flat
port/notes-float-promote
wip/handover/mail1011-candidate
wip/handover/files-s1-candidate
port/notes-float-shell-only
port/notes-float-perf
feat/whiteboard-s1
feat/tiering-v5
fix/app-switch-hitch
wip/local/files-s1-dev-v4-final
feat/files-s1-dev-v4
fix/c2-glass-shared
feat/flat-lists
wip/handover/whiteboard-s1-resume
wip/att-lazy-861
feat/switcher-browse
wip/att-lazy-860
feat/tasks-float
recovered/flat-backup-candidate
perf/stalls-1054-kc
land/ai-toolbar
feat/collections-db
feat/collections-db-fixes
codex/mail-1011-redesign-20261111
fix/ai-toolbar
backup/macos-vm/st3-head
perf/trim-candidate-phonestack
feat/switcher-three
fix/1051-index-idle-checkpoint
perf/stalls-1054-kb
perf/stalls-1054-k
perf/stalls-1054-r3
fix/c2-contrast-tail
perf/stalls-1054-r3-preview
feat/collections-before
feat/tiering-v4
fix/timelog-caret
wip/local/tasks-actions
docs/tasks-writes-v2-plan
st3-r3
feat/pass8
review/calendar-2-before-1111
wip/tiering-v3-cold4
perf/stalls-1054-r2
fix/suite-A4
fix/suite-A5-probe
fix/suite-A6
fix/suite-A3
fix/suite-A2
fix/suite-A5
fix/suite-A1
wip/local/attachments-861-fix
feat/contrast
wip/local/ports-861
storage/wal-checkpoint-off-save-1051
wip/local/mail-1011-reconcile-20261110
feat/style-sheet-fixes
feat/money-round
perf/stalls-1054
wip/tiering-v3-cold5
t3/mail-1011-liveness
feat/iphone-fixes
feat/notes-approve
wip/local/shrow-work
feat/files-s1-identity
feat/quickfix
wip/tiering-v3-cold
wip/local/shared-row-swipes
backup/macos-vm/pfx-B
backup/macos-vm/pfx-C
backup/macos-vm/pfx-D
feat/contrast-r1
feat/tiering-v3-s2-tags
feat/folder-drop
t3/photos-s1
feat/tiering-v3-s1-namespace
wip/local/photos-s1
t3/photos-plan-slice-one
recovered/backup/p1b-61505
t3/paged-search-reconcile
t3/smooth-pane-transitions
t3/index-position-startup-scan
fix/private-staging-759b-r2
backup/macos-vm/hk/hk1009/pr877
backup/macos-vm/hk/hk1009/pr878
docs/undo-block-ids-plan
fix/undo-768
backup/macos-vm/hk/hk1009/pr875
backup/macos-vm/hk/hk1009/pr904
proto/block-identity-v7d
backup/macos-vm/hk/hk1009/pr846
backup/macos-vm/hk/hk1009/pr860
backup/macos-vm/hk/hk1009/pr861
backup/macos-vm/hk/hk1009/pr849
backup/macos-vm/hk/hk1009/pr848
backup/macos-vm/hk/hk1009/pr853
backup/macos-vm/hk/hk1009/pr957
backup/macos-vm/hk/hk1009/pr893
backup/macos-vm/hk/hk1009/pr889
backup/macos-vm/hk/hk1009/pr902
docs/imap-notes-plan
docs/quota-plan-2
fix/parallel-test-flakes
docs/calendar-backend-v2-plan
feat/calendar-ical-converter
backup/macos-vm/hk/hk1009/pr808
docs/contacts-import-v2-plan
issue/610-pm-midnight
feat/calendar-v2-s1-containment
backup/macos-vm/hk/hk1009/pr854
backup/macos-vm/hk/hk1009/pr845
backup/macos-vm/hk/hk1009/pr917
docs/dav-recorder-v2-plan
plan/previews-865
plan/save-log-durable-entry
backup/macos-vm/hk/hk1009/pr934
fix/e2e-data-on-ram
backup/macos-vm/hk/hk1009/pr888
feat/appwindow3
feat/appwindow2
feat/appwindow
feat/money-p1
feat/keys-sheet
review/calendar-2-themes
feat/smooth-cursor
fix/float-style
review/calendar-2-float
release/2026-11-06-hotfix
archive/port/rows-drop-code
archive/port/rows-actions
archive/port/rows
scratch/tasks-894-ui-gates
review/calendar-2-night-wip
recovered/flaky/toast-reduced
release/2026-11-05
archive/flaky/rows-drop-fixed
archive/flaky/rows-actions
archive/flaky/rows
sim/bm15-final
sim/bm15-bis-932
sim/bm15-bis-909
sim/bm15
sim/bm15-bis-887
perf/tiering-option-b
fix/sw-lazy-precache
archive/plan/save-log-durable-entry
mock/money-fix2
archive/fix/e2e-data-on-ram
mock/appearance-all
mock/pill-press
mock/pill-press-mac
backup/macos-vm/appearance-after
mock/auto-swipes
mock/mail-actions
backup/macos-vm/mock/mail-actions
mock/money-static
archive/review/standards-917
perf/tiering-761-fix
mock/type-audit
mock/third-pane
feat/contacts-import-v2-s1
perf/executor-hot-path
archive/port/hidden-blocks
archive/port/devices
scratch/executor-on-894
scratch/executor-spans2
scratch/executor-spans
archive/port/rows-drop
feat/tiering-761-d-scale
feat/tiering-761-c-index
feat/tiering-761-b-reader
archive/review/sharing-pr3-review-9fec3d1f
perf/ports-lazy-budgets
feat/tiering-761-a-migration
archive/review/sharing-pr3-review
archive/review/sharing-pr3-review-code
archive/plan/previews-865
archive/port/port-attachments-3
archive/port/contacts-merge
fix/motion-audit-859
fix/motion-audit-859-mac
archive/port/port-pickers
archive/port/port-tables-2
archive/port/port-tables
recovered/local/sharing-s1-pr2-room-snapshot-candidate
archive/fix/parallel-test-flakes-code-minipc01
docs/imap-766-readonly-slice
feat/dav-recorder-v3
research/788-diagnosis
archive/fix/parallel-test-flakes
archive/perf/pr792-cold-index-edit
docs/sharing-slice-1
recovered/feat/dav-recorder-v2
recovered/feat/dav-recorder-v2-edd7bbb
spike/imap-766-s0-cases
archive/fix/undo-768
recovered/feat/dav-recorder
recovered/feat/dav-recorder-901acd4
feat/contacts-import
perf/cold-growth-on-764
perf/cold-growth-on-tiering
recovered/feat/tasks-set-status
feat/tasks-move-reorder
feat/tasks-delete-promote-duplicate
feat/carddav-writes
perf/quota-on-tiering
perf/quota-simple
perf/cold-growth-on-quota-stack
recovered/perf/cold-growth-on-tiering
feat/calendar-identity
feat/calendar-event-parser
feat/calendar-props-maps
port/glass-when-ring
recovered/feat/tiering-761-s1-wip-8132a84
recovered/feat/tiering-761-s1-wip-9da4094
recovered/feat/tiering-761-s1-wip-724512c
recovered/feat/tiering-761-s1-wip-66e667e
recovered/feat/tiering-761-s1
wip/6by32-01-tier-761-s1-pause-20261030
spike/imap-766-s0
wip/6by32-02-calternal-pause-20261030
wip/8by64-01-review-688-pause-20261030
wip/6by32-01-verify-744-pause-20261030
wip/6by32-01-verify-742-pause-20261030
fix/private-staging-759b
wip/6by32-01-review-748-pause-20261030
wip/6by32-01-review-733c-pause-20261030
wip/6by32-01-review-733b-pause-20261030
review/calendar-month
wip/local/bm15-trash
plan/759b-staging
review/767b-tests
review/preview-2026-10-29
docs/tiering-731-plan
wip/c6b02-review-733d
wip/c6b02-bm1-full-a
docs/deploy-plan
fix/storage-owner-liveness-642
fix/storage-fix-7
feat/tiering-731
wip/tiering-731-first-attempt
perf/idle-honest-2
fix/storage-private-tmp-642-dev
fix/storage-exact-file-quarantine-642
perf/one-flush-save
review/calendar-static
review/indexing-ring
review/when-field-2
proto/block-identity-2-review
proto/block-identity-review
review/when-field
issue/tasks-create-ids
issue/tasks-create
review/combined
review/task-polish
review/top-buttons
review/q1-q5
archive/integ325-293
archive/integ325-ci
issue/calendar-adr
archive/old/train/2026-10-23bk2
archive/old/train/2026-10-23bk
issue/469-mockup-9a
issue/smart-tasks-mockup
issue/469-menus
issue/652-signout-flake
issue/652-history-fix7
issue/652-history-fix6
archive/old/issue/spring-check-perf
issue/spring-check-perf
issue/659-rename-fast
archive/old/train/2026-10-21ar
issue/search-hardening-3
issue/652-history-fix5
issue/660-port-sheets-glass
issue/652-history-fix4
issue/652-history-fix3
issue/652-history-fix2
issue/652-history-flake
train/2026-10-21an
issue/settings-admin-port
issue/search-port
train/2026-10-20am
issue/storage-split-fix2
issue/storage-split
archive/old/issue/folder-ids-fix
train/2026-10-20al
archive/old/issue/folder-ids
train/2026-10-20ak
issue/tables-mockup
train/2026-10-19aj
train/2026-10-19ai
issue/469-merge-fixes
issue/sidebar-band
archive/old/issue/608-settings-spec
train/2026-10-19ah
issue/swipe-offscreen
train/2026-10-19ag
archive/old/issue/590-nlp-adr
archive/old/issue/587-event-after-write-2
train/2026-10-19af
archive/old/issue/587-event-after-write
issue/469-pill-room-c
issue/469-pill-room
train/2026-10-19ae
issue/469-narrow-handle
issue/397-ios-swipe-2
issue/469-desk-fixes
archive/old/issue/auto-update-adr
issue/469-filter-gap
issue/469-port-1b
issue/442-opacity-flake
issue/327-web-fast-3
archive/old/issue/469-port-1
issue/469-port-1
issue/327-web-fast-2
archive/old/issue/327-web-fast
archive/old/issue/425-stt-bench-vq1
archive/old/issue/445-no-bleed
archive/old/issue/400-swipe-mockup-2
issue/426-client-review
issue/426-client-2
issue/426-client
archive/old/issue/476-safe-area-lab
archive/old/issue/445-top-light
issue/471-blocks-mockup
archive/old/issue/448-links-app-2
archive/old/issue/448-links-app
archive/old/issue/398-cold-links
issue/434-442-small-2
issue/434-442-small
archive/old/issue/398-unload
archive/old/issue/445-bottom-band
issue/445-bottom-band
issue/351-rem-3
issue/351-rem-2
issue/351-rem
archive/old/issue/327-first-note
issue/395-width-phone
archive/old/issue/327-typing
issue/396-ios-edges
issue/397-ios-swipe
archive/old/issue/327-notes-index
issue/345-347-contrast-empty-2
archive/old/issue/44-arenas
issue/44-arenas
archive/integ325
archive/old/issue/327-perf-harness
archive/old/issue/44-thp
issue/44-thp
archive/old/issue/285-sticky-pills
archive/old/issue/44-trim-3
issue/44-trim-3
archive/old/issue/165-cards
archive/old/issue/165-picker-2
archive/old/issue/212-multi-select
No results found.
Labels
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".
No due date set.
Dependencies
No dependencies set
Reference
kayg/calternal#287
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
kayg (2026-10-14, Mac, after #228): "The flickering still happens, especially with every tab morph or hover change sometimes. It happens in the mockup too, so please investigate and debug!"
#228 removed the soft-light blend under the glass (crbug 1348920), so that cause is gone. The flicker is still there on tab morphs (the bottom bar switching modes / tab bar → format bar) and hover changes, in both the app and the mockup.
Suspects to test one by one, each with proof:
transform,opacity < 1,filter,will-change,clip-path,maskorcontain: paint. That makes it a backdrop root, so for those frames the blur samples nothing (or only that layer) and pops.will-changeadded or removed, or a transition starting or ending, re-rasterizes the backdrop. Look for a one-frame snap between a GPU and a CPU blur.backdrop-filtervalues themselves transitioning.backgroundalpha of glass (an alpha step from 0 to something) or adding a box-shadow on a layer that needs a backdrop.Method:
--use-gl/swiftshader comparison). Also WebKit.page.videoplus a requestAnimationFrame-driven per-frame screenshot) over the photo backdrop in dark mode.Overlay.setShowPaintRects) andAnimationdomains to name the exact element and property.@calternal/uibar or glass styles, so the app and the mockup both get it.e2e/glass.spec.tswith a guard: during the morph and hover, no backdrop-filter ancestor gains a backdrop-root property, and the frame-luminance check shows no spikes.kayg (2026-10-14): "Even in the search mockup, with every character typed, I saw a black flicker on the browser chrome." That's the browser's own toolbar or tab area, not our page.
New suspect, top priority: something rewrites what the browser uses to tint its chrome on every keystroke:
<meta name="theme-color">being set again (even to the same value; some browsers repaint on every write);html/bodybackground changing;position: fixedelement near the top edge appearing or changing (Safari 26 samples those, see #293's research);history.replaceState/ hash writes per keystroke (the search state is in the URL).Log every write to theme-color, every change to html/body background, and every URL write while typing in search.html. Then: write theme-color only when the value actually changes, debounce URL writes (or write on idle), and make sure nothing fixed near the top edges changes per keystroke. Check the same in the app (palette and editor typing). Add a test that typing 20 characters causes 0 theme-color writes and at most 1 URL write after idle.
What I found: causes, with proof
I couldn't run a real GPU here (the VM's only display is QEMU's virtual VGA). I worked in three ways: headless Chromium in software, headless with SwiftShader GPU compositing, and headed Chromium on Xvfb with SwiftShader. The headed setup does hardware compositing with
EGL_KHR_swap_buffers_with_damage, so it uses the partial-redraw path. I also used WebKit. Every frame was captured either through a CDP screencast with animations slowed 20× (Animation.setPlaybackRate) or as real X-server grabs (xwd, about 60 per second). A script then flagged a 16 px square whenever its brightness jumps away and straight back. The CDP Animation and LayerTree domains named the elements, and a per-frame DOM watcher checked every ancestor of every backdrop-filter element.1. Switching Notes ⇄ Settings (the tab morph): the panes lose their blur for the whole fade
swapTabs(#173) faded the whole.tab-layerwithopacity. That layer holds every pane: sidebar, list, frame and the bar. An ancestor with opacity < 1 is a backdrop root, so while the fade runs every pane blurs only what is inside the tab layer and never the photo. The panes go clear and show the sharp photo, then snap back to frosted when the fade ends.aside.side-pane,section.list-pane,div.frame-fill, the bar) sat indiv.tab-layerwith opacity between 0.00 and 0.99.2. A screen coming back from
visibility: hiddendraws one frame with nothing behind its glassThis holds even without any fade, from the keyboard. The first frame after a tab layer goes from
visibility: hiddento visible has its glass blurring nothing: one dark frame on every switch. The sidebar measures 43 (Notes), then 34 for one frame, then 55 (Settings). Left to right: the frame before, the dark frame, the frame after:3. The bar's glass held its own contents
.morphwas the glass (backdrop-filter, fill, roundedoverflow: hidden) and also the parent of the content layers that cross-fade. LayerTree, GPU path:.layerchildren got composited layers inside the glass (ActiveOpacityAnimation,ActiveTransformAnimation) and lost them again 300 ms later..morph-haloflipped between having its own layer and not (Overlap), because nothing kept it on one.paintCount). After the fix: 0; the hover tint paints a separate content layer.main.contenthas backdrop-filter): glass in glass, cut off from the backdrop all the time. On the phone, the note screen had a backdrop-filter behind solid paper, which did nothing except make it a backdrop root for the top bar and the bottom bar.4. Bar morphs and typing rewrote what the browser tints its own toolbar from
Every route change replaced the whole
route.queryobject, so every effect that reads any query key ran again. That included the theme and the backdrop, which rewrite<meta name="theme-color">and the root's custom properties.replaceState, 40 theme-color writes, 80html stylechanges (the backdrop effect's cleanup removed--edge-top/--edge-bottomand set them again on every key). After: 0 theme-color, 0 root changes, 2replaceState(one as typing starts, one when it stops). With the photo backdrop: 20replaceState→ 2.5. The mockup still had the blend-mode grain
#228 fixed the grain only in the app. The mockup's
.grainkeptmix-blend-mode: soft-light, which is the crbug 1348920 trigger: blur over a blend goes wrong on any partial redraw, and in-page hovers and morphs are partial redraws. The mockup now uses the app's plain-paint grain.Ruled out, with numbers
backdrop-filtervalues orborder-radiusanimating: none (the Animation domain lists only width/height/translate on the capsule and opacity/transform on the content).What I could not reproduce
None of the setups here reproduced a Mac/GPU-only flicker: one that shows only with real Metal compositing, partial swaps or CoreAnimation overlays. Even crbug 1348920 itself (blend + hovering the tab strip with the real X pointer) never showed on headed SwiftShader. Causes 1, 2, 4 and 5 don't depend on the GPU: they reproduce here and are fixed at the source. Cause 3 is a structural risk that the GPU path is known to be sensitive to, and it is now removed.
The fix
opacity: 0plusinertandaria-hidden, never withvisibility: hidden..morphis now only a springing size. The glass is a childless.morph-glassinside it, with the contents on.morph-clipabove. The halo is always on its own layer. The away fade is on the glass layers themselves, never on a parent. The spring morph is unchanged.@calternal/ui/lib/page-chrome:setThemeColor,setRootVarandsetRootDatawrite only when the value changes. They are used by the theme, the backdrop, the keyboard lift and the input-kind flag, in the app and the mockup.After, the same switch: every frame has the glass of one screen or the other, never anything in between (sidebar brightness: 43 → 55 → 43, nothing else):
Guards
glass.spec: on every frame of bar morphs, hovers, the list hover and a pointer tab switch, nothing that contains a glass element may have filter, opacity < 1, mask, clip-path, backdrop-filter or a blend, or be animating any of those. The bar's glass has no children. In Chromium no square of the panes or the halo flashes for one frame. A keyboard tab switch shows only frames that look like Notes or like Settings. Before the fix all three new checks fail; after, they pass.page-chrome.spec: typing 20 characters in the note and in the palette, and a bar morph, cause 0 theme-color writes, no root changes, and at most 1 address write after typing stops.Please try on the Mac
PR: #374
Screenshots after the fix (dark/light photo backdrop; note and Settings; the bar now sits beside the Settings card). Bar before/after, Insert sheet, 1440 dark (identical):
chromium 320:

chromium 360:

chromium 375:

chromium 390:

chromium 900:

chromium 1440:

webkit 320:

webkit 360:

webkit 375:

webkit 390:

webkit 900:

webkit 1440:

Rebased onto dev (
63ef0f6, after #376) as #383; #374 is closed. Also:page-dim'sdata-dimand the phone stack'sdata-edgenow go through the change-only helper. The requested specs ran on chromium and webkit at 390 and 1440: 853 passed.bar-stays.spec:77fails on webkit-390 here, the same as on dev.prefs-offline:107hit a layout shift on the new glass layer; the glass and clip now carrydata-morph-until, and that test passed on prefs-chromium on a rerun.safe-areas.spec:142passes 3 of 3 on chromium-390 and 3 of 3 on webkit-390.Landed in train i (#383 → dev
1a0724f) and live on calternal.cloud at 01:41 IST. Train: chromium-390 471 passed, chromium-1440 471, webkit-390 458, webkit-1440 25; 0 failed.Behaviour change for @kayg: switching tabs now keeps the glass frosted and fades only what's inside it. Before, the whole glass faded (the #173 tab fade). Please check on the Mac using the steps in the earlier comment: tab switch, theme change, address-bar collapse in Safari, PWA cold start.