# Liquid Glass vs. CSS Glassmorphism

CSS glassmorphism softens and tints what is behind a panel. A refractive lens also shifts where it samples the backdrop, so a straight line can appear to kink as it enters the rim. That difference is visible over patterned content and can be subtle over an evenly colored background.

## Compare the treatments on one stage

Render two equally sized surfaces over the same repeating lines. Use this CSS for the frosted reference and keep both panels over equivalent sections of the backdrop.

```css
.scene {
  background: repeating-linear-gradient(108deg, #17254b 0 24px, #a6c7ff 24px 29px);
}

.css-glass {
  border: 1px solid rgb(255 255 255 / 28%);
  border-radius: 1.25rem;
  background: rgb(24 30 48 / 36%);
  backdrop-filter: blur(6px) saturate(1.3);
}
```

For the second panel, use QuickLiquid with `material: 'thin'`, `blur: 6`, `refractionStrength: 24`, and `refractionMode: 'auto'`. Use Chromium with a simple host for the live backdrop comparison. The line should soften under both panels. Watch the line's position close to the edge to see the effect of the displacement field.

## Choose the treatment based on its job

Frost works well when the panel's main job is to separate text from visual noise. Refraction is easier to appreciate on a small floating control, a movable lens, or an interface where the scene behind it matters. Try the test over text, then a photo, then a nearly uniform background. Decide where the difference improves the interface enough to earn the extra rendering cost. See [the browser guide](/blog/liquid-glass-browser-support/) before relying on live backdrop refraction in a cross-browser design.
