Backdrop-filter applies graphical effects to the pixels behind an element. A visible result normally needs a background that is at least partly transparent; it does not blur the element's own text in the same way as filter.
CSS backdrop-filter: preserve contrast beneath translucent panels
When to use it
A floating case summary sits over a changing dashboard image. A light translucent surface with backdrop blur can separate the summary from the image, but the label and amount still need sufficient contrast when the effect is unsupported or the image changes. Start with a mostly opaque fallback color, then add the blur as decoration. The sample keeps the same readable foreground in both states. Avoid using the blur to hide sensitive information behind the panel: the underlying pixels still exist. Test the worst background crop, reduced transparency settings where available, print, and high zoom. If the summary is a dialog, its focus and semantics come from the HTML and interaction layer, not from the frosted appearance.
.case-summary-overlay { color: #173148; background: rgb(247 250 252 / 94%); }
@supports (backdrop-filter: blur(8px)) { .case-summary-overlay { background: rgb(247 250 252 / 80%); backdrop-filter: blur(8px); } }Cost and verification
Blurring a large moving backdrop can require extra compositing and paint work. Measure scrolling and animation on the devices that actually use the interface; a narrow panel may be fine while a full-screen blur may not be. The fallback must carry the readability contract because feature support alone does not establish contrast. Avoid stacking multiple filters and translucency layers without a reason. Do not infer privacy from the visual effect. A plain opaque panel is often a better fit for dense financial or evidentiary data.
Common Mistakes
- Do not rely on blur as a privacy boundary.
- Do not make text contrast depend on one background crop.
- Do not apply a full-screen blur without measuring scrolling cost.
Connected lessons
- CSS Property Decisions
- CSS filter effects: use image treatment without obscuring evidence
- CSS color and contrast: pair text with its real surface
- CSS invalid declarations and fallbacks: fail locally, not silently
