Glass panes: a light vertical band flickers in, even while hovering the browser's own UI #167

Closed
opened 2026-10-14 06:54:54 +00:00 by kayg · 1 comment
Owner

kayg (screenshot on the issue): a light vertical band shows inside the sidebar or list glass. It flickers, even while the mouse is over the browser's own toolbar, outside the page.

This came up before as the "band behind the sidebar". Find the real cause. Candidates:

  • a backdrop-filter layer edge or the backdrop root (TASTE "backdrop-root gotcha");
  • an animated sky layer under a filter;
  • a hover state that reacts to mouseleave or the window losing focus;
  • the progressive blur layer.

Prove it with a screen recording or frame strip before and after, at 1440 and 900 in Chromium and WebKit, with the pointer moving over and outside the window. Zero idle CPU still applies: nothing animates while nobody is doing anything.

kayg (screenshot on the issue): a light vertical band shows inside the sidebar or list glass. It flickers, even while the mouse is over the browser's own toolbar, outside the page. This came up before as the "band behind the sidebar". Find the real cause. Candidates: - a backdrop-filter layer edge or the backdrop root (TASTE "backdrop-root gotcha"); - an animated sky layer under a filter; - a hover state that reacts to `mouseleave` or the window losing focus; - the progressive blur layer. Prove it with a screen recording or frame strip before and after, at 1440 and 900 in Chromium and WebKit, with the pointer moving over and outside the window. Zero idle CPU still applies: nothing animates while nobody is doing anything.
Author
Owner

Cause found. The backdrop's film grain (.grain in Backdrop.svelte) was a full-window layer with mix-blend-mode: soft-light, sitting under every glass pane. Chromium has a long-standing bug (crbug.com/1348920, written up here): an element with backdrop-filter: blur over a mix-blend-mode layer flickers when the pointer hovers the browser's tabs or toolbar. That hover redraws only part of the window. In the redrawn strip the blend is worked out wrongly, and the pane's blur then smears that wrong strip down the whole height of the pane.

That accounts for every detail in the report:

  • it happens with the pointer outside the page, over the browser's own UI, and it flickers as tab and toolbar hovers come and go;
  • the band is vertical and full height, as wide as the part of the window that was redrawn;
  • in kayg's screenshot the band is darker than the pane over the bright sky at the top and lighter over the dark ground at the bottom. That is grey noise at 7 % laid on with plain paint instead of soft-light: it pulls everything towards mid grey.

The earlier transform: translateZ(0) on the panes (points 2 and 19) never touched this, because the cause was under the glass, not in it.

Fix: the grain no longer blends. The same noise is split around its middle grey into white specks and black specks, laid on with plain see-through paint, so it lightens and darkens by turns the way soft-light did. Its strength is measured to match: mean |pixel − 3×3 mean| on bare backdrop went from 0.28 to 0.29 (dark photo), 0.25 to 0.38 (dusk sky) and 0.49 to 0.56 (light day). The average level moves by about 1/255. Side by side it looks the same (crops below).

Guard: e2e/glass.spec.ts checks, for sky (day and night), photo and plain, that no element or pseudo-element anywhere in the app has a blend mode, and that nothing is animating once the pointer has left the page. It passes in chromium and webkit at 1440 and 390, and contrast.spec still passes.

What I could and couldn't reproduce: this VM has no GPU. I ran headed Chromium on Xvfb with the real X pointer (xdotool) moving over the page, the tab strip, the toolbar and off the window, and with focus moving to another window and back. I recorded it with xwd screen grabs (~7 fps), CDP screencast video, and both software and SwiftShader GPU compositing. Every frame of the panes was identical, before the fix and after. The bug needs Chromium's hardware partial-redraw path, which this machine can't run. A trace of the page at rest with the pointer outside shows no paints, no layout and no running animations (only the caret's blink while editing), so nothing inside the page was redrawing the panes. The band came from the browser redrawing part of the window, and the blend layer was what made that partial redraw come out wrong.

Please check on your Mac: dark theme, photo backdrop, then sweep the pointer across the tabs and toolbar. The band should be gone.

Grain before (soft-light) and after (plain paint), dark photo, 1440, 4x zoom:
grain

After, every width, light / dark photo / dusk sky:

chromium 320: chromium-320-light chromium-320-dark chromium-320-dusk

chromium 390: chromium-390-light chromium-390-dark chromium-390-dusk

chromium 900: chromium-900-light chromium-900-dark chromium-900-dusk

chromium 1440: chromium-1440-light chromium-1440-dark chromium-1440-dusk

webkit 320: webkit-320-light webkit-320-dark webkit-320-dusk

webkit 390: webkit-390-light webkit-390-dark webkit-390-dusk

webkit 900: webkit-900-light webkit-900-dark webkit-900-dusk

webkit 1440: webkit-1440-light webkit-1440-dark webkit-1440-dusk

**Cause found.** The backdrop's film grain (`.grain` in `Backdrop.svelte`) was a full-window layer with `mix-blend-mode: soft-light`, sitting under every glass pane. Chromium has a long-standing bug ([crbug.com/1348920](https://bugs.chromium.org/p/chromium/issues/detail?id=1348920), written up [here](https://zenn.dev/newt_st21/articles/chromium-bug-of-rendering-artifacts)): an element with `backdrop-filter: blur` over a `mix-blend-mode` layer flickers **when the pointer hovers the browser's tabs or toolbar**. That hover redraws only part of the window. In the redrawn strip the blend is worked out wrongly, and the pane's blur then smears that wrong strip down the whole height of the pane. That accounts for every detail in the report: - it happens with the pointer **outside the page**, over the browser's own UI, and it flickers as tab and toolbar hovers come and go; - the band is **vertical and full height**, as wide as the part of the window that was redrawn; - in kayg's screenshot the band is *darker* than the pane over the bright sky at the top and *lighter* over the dark ground at the bottom. That is grey noise at 7 % laid on with plain paint instead of soft-light: it pulls everything towards mid grey. The earlier `transform: translateZ(0)` on the panes (points 2 and 19) never touched this, because the cause was under the glass, not in it. **Fix:** the grain no longer blends. The same noise is split around its middle grey into white specks and black specks, laid on with plain see-through paint, so it lightens and darkens by turns the way soft-light did. Its strength is measured to match: mean |pixel − 3×3 mean| on bare backdrop went from 0.28 to 0.29 (dark photo), 0.25 to 0.38 (dusk sky) and 0.49 to 0.56 (light day). The average level moves by about 1/255. Side by side it looks the same (crops below). **Guard:** `e2e/glass.spec.ts` checks, for sky (day and night), photo and plain, that no element or pseudo-element anywhere in the app has a blend mode, and that nothing is animating once the pointer has left the page. It passes in chromium and webkit at 1440 and 390, and `contrast.spec` still passes. **What I could and couldn't reproduce:** this VM has no GPU. I ran headed Chromium on Xvfb with the real X pointer (xdotool) moving over the page, the tab strip, the toolbar and off the window, and with focus moving to another window and back. I recorded it with xwd screen grabs (~7 fps), CDP screencast video, and both software and SwiftShader GPU compositing. Every frame of the panes was identical, before the fix and after. The bug needs Chromium's hardware partial-redraw path, which this machine can't run. A trace of the page at rest with the pointer outside shows no paints, no layout and no running animations (only the caret's blink while editing), so nothing inside the page was redrawing the panes. The band came from the browser redrawing part of the window, and the blend layer was what made that partial redraw come out wrong. **Please check on your Mac:** dark theme, photo backdrop, then sweep the pointer across the tabs and toolbar. The band should be gone. **Grain before (soft-light) and after (plain paint), dark photo, 1440, 4x zoom:** ![grain](https://git.kayg.org/attachments/75c81c1a-d644-4d71-8c08-72d97ab8d3cf) **After, every width, light / dark photo / dusk sky:** chromium 320: ![chromium-320-light](https://git.kayg.org/attachments/fc971635-507f-4af9-8bcb-8a4cb1db1d1b) ![chromium-320-dark](https://git.kayg.org/attachments/27432fd9-4d3b-4425-a190-0e1b9d74153a) ![chromium-320-dusk](https://git.kayg.org/attachments/cc919771-dcb1-416d-b063-df95586dbd2b) chromium 390: ![chromium-390-light](https://git.kayg.org/attachments/2a7726ad-c8c2-4553-a7fa-f11e1e4ab846) ![chromium-390-dark](https://git.kayg.org/attachments/e765405f-6cc9-49a0-b61b-3dd849e698af) ![chromium-390-dusk](https://git.kayg.org/attachments/540db289-6b39-4448-9135-d0cdcb8502ed) chromium 900: ![chromium-900-light](https://git.kayg.org/attachments/68ff462f-3c98-4d09-8595-7926b03b3b0a) ![chromium-900-dark](https://git.kayg.org/attachments/a38330f7-085e-4183-afce-fbec6d4a9f0b) ![chromium-900-dusk](https://git.kayg.org/attachments/4ae57311-bc4f-447a-881b-acaa5da04094) chromium 1440: ![chromium-1440-light](https://git.kayg.org/attachments/ba3e322d-a582-4ce5-9abe-6452565373da) ![chromium-1440-dark](https://git.kayg.org/attachments/1afb36a4-4b70-4ae3-a504-b663ff4ebdda) ![chromium-1440-dusk](https://git.kayg.org/attachments/a0d2848f-0e8a-4350-95b5-e619ad3de432) webkit 320: ![webkit-320-light](https://git.kayg.org/attachments/9130e0eb-678e-4a2c-ab30-e3b39e241691) ![webkit-320-dark](https://git.kayg.org/attachments/3614543d-3df8-450c-ab79-afe99f867efb) ![webkit-320-dusk](https://git.kayg.org/attachments/181c670e-c6b3-4f72-b102-02beb158b547) webkit 390: ![webkit-390-light](https://git.kayg.org/attachments/2dea9196-75d5-46a7-bbcd-30ccfb420b2f) ![webkit-390-dark](https://git.kayg.org/attachments/d0b2bd2a-a64c-4cb9-8742-707e8c3e71b0) ![webkit-390-dusk](https://git.kayg.org/attachments/493fba32-9355-4cb2-a930-0e2797571708) webkit 900: ![webkit-900-light](https://git.kayg.org/attachments/f83a123c-dda5-46e7-859e-5700eb2a28c2) ![webkit-900-dark](https://git.kayg.org/attachments/550d1a14-2e0f-406d-b4e8-b9c0293ffb20) ![webkit-900-dusk](https://git.kayg.org/attachments/3f446c09-b8bd-4044-8599-c40202d72501) webkit 1440: ![webkit-1440-light](https://git.kayg.org/attachments/765064ed-2108-4069-a914-88e407d73d49) ![webkit-1440-dark](https://git.kayg.org/attachments/a6c18b64-63e0-4a18-b71d-35d036b5a976) ![webkit-1440-dusk](https://git.kayg.org/attachments/8d382df6-ac46-4982-9468-8fb9c2db1310)
kayg closed this issue 2026-10-14 09:32:17 +00:00
Sign in to join this conversation.
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#167
No description provided.