VS Code put glass on the bench.
VS Code 1.141 adds frosted glass to menus, the Command Palette, and other pop-ups in the desktop Agents window. The release notes say the effect has an opacity setting. They also say it becomes solid for reduced-transparency preferences, high-contrast themes, or unsupported systems.[1]
That fallback is the useful part. A translucent panel borrows its final appearance from content it does not own. The same menu can sit over a quiet editor gutter, a warning banner, a diff full of saturated colors, or a moving preview.
Do not test the panel against one polite screenshot.
Blur does not remove the backdrop.
CSS backdrop-filter applies effects to the area behind an element. MDN notes that the element must remain transparent or partly transparent for the effect to show.[2] Blur softens detail, but the backdrop still supplies color and brightness.
Test the component over its worst credible backgrounds. Use code, diffs, warnings, imagery, motion, and focused controls. Check the text, icons, borders, focus ring, selected state, and disabled state. A panel that reads over one dark wallpaper has not passed.
The user gets a hard cutout.
The prefers-reduced-transparency media feature reports a device preference to reduce transparent or translucent layers. MDN says that this can improve contrast and readability for some users. MDN also marks the feature as not Baseline because some widely used browsers do not support it.[3]
That support gap changes the build order. Start with an opaque surface. Add blur inside an @supports rule. Return to the opaque surface when reduced transparency or forced colors is active. The unsupported browser keeps the safe default.
.menu {
background: #10171e;
color: #fff;
}
@supports (backdrop-filter: blur(16px)) {
.menu {
background: rgb(10 16 22 / 72%);
backdrop-filter: blur(16px) saturate(130%);
}
}
@media (prefers-reduced-transparency: reduce),
(forced-colors: active) {
.menu {
background: #10171e;
backdrop-filter: none;
}
}
Opacity is not a confidence score.
A slider can help a designer inspect the effect. It cannot certify contrast across every backdrop. Automated contrast checks also need the final composited pixels, not only the panel's declared foreground and background colors.
Keep the production decision small. Name the opaque color. Name the enhanced alpha and blur. List the surfaces that were tested. Record the reduced-transparency and forced-colors states. If the panel covers code or controls, test keyboard focus and selection over the same backdrops.