▲ | chrismorgan 2 days ago | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
This suffers from the problem of only blurring using the pixels immediately behind the surface, as demonstrated well in https://www.joshwcomeau.com/css/backdrop-filter/#the-issue. That and the discussion in https://news.ycombinator.com/item?id=42302907 are good reading. If the backdrop is going to move underneath, this is fairly important; if it will be static, it’s not normally important. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
▲ | kris-kay 2 days ago | parent | next [-] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
I did read Josh's great article and had a go at implementing the tutorials. Unfortunately, I ran into some issues with the border-radius via SVG mask bit. It worked great on a hardcoded element, but I still need to figure out how to make it work across a whole component library where the border-radius changes based on the user's branding and container-queries. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
▲ | account42 14 hours ago | parent | prev | next [-] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
I don't think either version is really more correct than the other. The default approximates an object that is directly behind the frosted glass while the tweaked version simulates an object that is much further away. For me the tweaked version is much more distracting and looks more wrong due to conflicting depth signals. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
▲ | andrewmcwatters 2 days ago | parent | prev [-] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Josh’s solution also intuitively appears wrong to me because it seems to assume that nearby elements are emissive, and I can’t agree with that as a standard physical property of “materials” on the web. I instead assume that materials are by default more similar to paper. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|