Compatibility
Browser Support
Frosted glass works everywhere modern. Refraction is a progressive enhancement for Chromium.
Two layers of support
UIGlass components are built in two layers:
- Frosted glass — tint,
backdrop-filterblur, saturation and brightness, rim light, shadows and motion. This is the default for every browser that supports backdrop filters. - SVG refraction — a displacement lens added on top with
backdrop-filter: url(#filter). It is applied only when the page detects a Chromium-based engine.
Because refraction is an enhancement, nobody gets a broken component: browsers without it simply show the frosted version you designed.
Support table
| Browser | Frosted glass | SVG refraction | Notes |
|---|---|---|---|
| Chrome (Windows, macOS, Linux, ChromeOS, Android) | Yes | Yes | Full experience |
| Microsoft Edge | Yes | Yes | Chromium-based |
| Opera, Brave, Vivaldi, Arc | Yes | Yes | Chromium-based |
| Samsung Internet (Android) | Yes | Yes | Chromium-based |
| Safari (macOS, iOS, iPadOS) | Yes | No | Frosted fallback |
| Firefox (desktop, Android) | Yes | No | Frosted fallback |
| Any browser on iPhone or iPad | Yes | No | All iOS browsers use WebKit |
| Very old browsers without backdrop-filter | Solid surface | No | Readable solid fallback |
How the export decides
The HTML export contains a tiny script that adds the class lg-refract to the html element in Chromium browsers. The refraction rule only applies under that class:
.lg-refract .glass-button {
backdrop-filter: url(#glass-button-refract) var(--lg-backdrop);
}
Everywhere else the base rule stays in charge:
.glass-button {
-webkit-backdrop-filter: var(--lg-backdrop);
backdrop-filter: var(--lg-backdrop);
}
Browsers that don’t support backdrop-filter at all receive a near-opaque background from an @supports not (...) rule, so text stays readable.
User preferences
| Preference | What the export does |
|---|---|
prefers-reduced-motion: reduce | Disables transitions and the light sweep |
prefers-reduced-transparency: reduce | Replaces glass with a solid surface where the browser supports this query |
Testing your design
The badge on the builder’s stage tells you which mode your current browser uses. To see the fallback without switching browsers, open the exported demo page in Safari or Firefox, or remove the lg-refract class in your browser’s developer tools.
Browser engines change. This page describes behaviour at the time of the last update; the export logic is designed so that new support is picked up without changing your CSS.