Glass panes: no blend mode behind them, so no flickering band (#167) #228

Closed
kayg wants to merge 0 commits from issue/167-merge into dev
Owner

Closes #167.

Cause: the backdrop's film grain (.grain) used mix-blend-mode: soft-light and sat under every backdrop-filter pane. Chromium bug crbug.com/1348920 makes blur over a blend flicker when the pointer hovers the browser's tabs or toolbar. Those hovers redraw only part of the window, the blend comes out wrong in that strip, and the pane's blur spreads it into a full-height band. The evidence is on the issue: #167 (comment)

Fix: the grain is plain see-through paint. The same noise is split into light and dark specks, and its measured strength matches the old soft-light grain. The look doesn't change.

Guard: e2e/glass.spec.ts checks that nothing in the app blends and nothing animates once the pointer has left the page, for sky (day and night), photo and plain backdrops. It passes in chromium and webkit at 1440 and 390, and contrast.spec still passes.

Perf: a CSS-only change. One full-window blend layer is gone, and the page at rest does no paint, layout or animation.

Can't be reproduced on the CI VM, which has no GPU. kayg, please confirm on the Mac by sweeping the pointer over the tabs in dark mode with the photo backdrop.

🤖 Generated with Claude Code

https://claude.ai/code/session_018Yyy8fQGxPLkLa8v8NXz7T

(Replaces #215, merged with current dev. Review on #215.)

Closes #167. **Cause:** the backdrop's film grain (`.grain`) used `mix-blend-mode: soft-light` and sat under every backdrop-filter pane. Chromium bug crbug.com/1348920 makes blur over a blend flicker when the pointer hovers the browser's tabs or toolbar. Those hovers redraw only part of the window, the blend comes out wrong in that strip, and the pane's blur spreads it into a full-height band. The evidence is on the issue: https://git.kayg.org/kayg/calternal/issues/167#issuecomment-47286 **Fix:** the grain is plain see-through paint. The same noise is split into light and dark specks, and its measured strength matches the old soft-light grain. The look doesn't change. **Guard:** `e2e/glass.spec.ts` checks that nothing in the app blends and nothing animates once the pointer has left the page, for sky (day and night), photo and plain backdrops. It passes in chromium and webkit at 1440 and 390, and `contrast.spec` still passes. **Perf:** a CSS-only change. One full-window blend layer is gone, and the page at rest does no paint, layout or animation. Can't be reproduced on the CI VM, which has no GPU. kayg, please confirm on the Mac by sweeping the pointer over the tabs in dark mode with the photo backdrop. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_018Yyy8fQGxPLkLa8v8NXz7T (Replaces #215, merged with current dev. Review on #215.)
Glass panes: no blend mode behind them, so no flickering band (#167)
Some checks failed
CI / rust (pull_request) Successful in 1m11s
CI / web (pull_request) Failing after 5m15s
f14eac5271
The backdrop's film grain used mix-blend-mode: soft-light, painted under
every backdrop-filter pane. Chromium redraws a blend under backdrop-filter
glass wrongly when only part of the window is redrawn, which happens
whenever the pointer is over a browser tab or the toolbar
(crbug.com/1348920): a light band flickers inside the panes.

The grain is now plain see-through paint: the noise split around its
middle grey into light and dark specks, the same strength as before.
A browser test checks that nothing in the app blends and nothing
animates at rest.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018Yyy8fQGxPLkLa8v8NXz7T
Merge remote-tracking branch 'origin/dev' into issue/167-glass-band
Some checks failed
CI / rust (pull_request) Successful in 2m8s
CI / web (pull_request) Failing after 22s
53ef78f617
Author
Owner

Closing: this branch is already fully contained in dev (it landed through a merge train). Branch cleanup, 2026-10-15.

Closing: this branch is already fully contained in `dev` (it landed through a merge train). Branch cleanup, 2026-10-15.
kayg closed this pull request 2026-10-15 08:34:39 +00:00
Some checks failed
CI / rust (pull_request) Successful in 2m8s
CI / web (pull_request) Failing after 22s

Pull request closed

Sign in to join this conversation.
No reviewers
No milestone
No project
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!228
No description provided.