fix(header): drop no-op backdrop-blur that flickered content on scroll#1499
Conversation
…l [preview:none] The sticky header carried `backdrop-blur-sm`, but every platform ships an opaque header background (bg-ods-bg / bg-ods-card), so the blur sampled a backdrop that is then fully painted over: zero visual effect, but it forced the browser to keep a backdrop-filter surface and re-rasterize the strip behind the sticky bar every scroll frame. That surface desyncs a frame against the scrolling content, making content flicker as it passes under the header (most visible on large high-contrast headings, e.g. /pricing). Removing it is a visual no-op on every platform and eliminates the flicker. Co-Authored-By: Claude Opus 4.8 <[email protected]>
|
Warning Review limit reached
Next review available in: 24 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Problem
Reported: a visible flicker when scrolling the flamingo /pricing page, worst as the large monospace headings (`What's in OpenFrame:`, `One Dollar. One Device.`) pass under the sticky header.
Root cause
The flicker is not in the page content — that section is static on scroll (instrumented: 0 DOM mutations, no reveal/entrance animations, opacity 1, no transforms). It's a compositor artifact from the shared sticky header.
The header carried `backdrop-blur-sm`, but every platform ships an opaque header background (`headerBackground: UNIFIED_HEADER_BG = 'bg-ods-bg'`, live-computed `srgb 0.086…`, alpha 1; others use `bg-ods-card`). So the blur samples a backdrop that is then fully painted over — zero visual effect, but it still forces Chromium to:
That backdrop snapshot desyncs by a frame against the scrolling content → content flickers as it passes under the header. It's worst on high-contrast large text (the pricing headings). Flamingo also has `headerAutoHide: false`, so the header never translates on scroll here — ruling out the show/hide transform and leaving the backdrop-filter as the sole culprit.
Fix
Remove `backdrop-blur-sm` from the header, with a comment explaining why it must not return (and how to add a real translucent "glass" header deliberately if ever wanted). This is a visual no-op on every platform (all header backgrounds are opaque) and eliminates the flicker for all header-bearing platforms at once.
Verification
🤖 Generated with Claude Code