en.wikipedia.org/wiki/Liquid_Glass
2 corrections found
Because browsers cannot access the pixels rendered behind an element
This overstates the limitation. Browsers do access and process pixels behind an element for features like `backdrop-filter`; the usual limitation is that web authors or APIs like WebGL can't arbitrarily read those pixels directly.
Full reasoning
The sentence is too categorical as written. Modern browsers do operate on pixels behind an element: CSS backdrop-filter explicitly applies effects to the backdrop behind an element, and MDN describes it as applying filter effects to “the pixels painted behind an element.”
What is generally limited is direct programmatic read access from web content or specific rendering APIs. For example, the liquidGL project explains that it uses an offscreen technique to work around WebGL’s security limitations on reading live screen pixels. That is a narrower claim than saying browsers themselves cannot access backdrop pixels at all.
So the accurate distinction is:
- browsers can render/effect the backdrop behind an element;
- web implementations may still need workarounds because JavaScript/WebGL often can't directly sample those pixels the way a native compositor can.
2 sources
- backdrop-filter CSS property - CSS | MDN
The backdrop-filter CSS property lets you apply graphical effects such as blurring or color shifting to the area behind an element... The backdrop-filter property applies filter effects to the pixels painted behind an element.
- GitHub - naughtyduk/liquidGL: liquidGL - Liquid Glass For The Web - WebGPU/WebGL
To overcome WebGL's security limitations on reading live screen pixels, liquidGL uses an innovative offscreen rendering technique.
liquid-glass-js, a WebGL library
The project describes itself as SVG-first, not as a WebGL library. Its primary renderer uses SVG displacement on live DOM, with WebGL only as an optional fallback for cases SVG can't handle.
Full reasoning
The project’s own repository contradicts this description. liquid-glass-js is presented as “SVG-first liquid glass for the web” and says its primary renderer is an SVG feDisplacementMap applied to live DOM. The same README explains that WebGL is optional and used only for cases an SVG filter can’t cover.
That means calling liquid-glass-js simply “a WebGL library” is materially inaccurate: WebGL is part of the project, but not its primary or defining implementation path according to the maintainers’ own documentation.
1 source
- GitHub - Amir-Abushanab/liquid-glass-js: SVG-first liquid glass effects and components for the web @liquidglassjs
SVG-first liquid glass for the web. The primary renderer is an SVG feDisplacementMap applied to live DOM... WebGL and a procedural QR are optional, code-split escape hatches for the two cases an SVG filter can't cover.