Bug 205019 - Backdrop filter not working with overflow: hidden on parent
Summary: Backdrop filter not working with overflow: hidden on parent
Status: RESOLVED DUPLICATE of bug 224899
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: WebKit Nightly Build
Hardware: Mac macOS 10.13
: P2 Normal
Assignee: Nobody
URL: https://codepen.io/marcel_pi/pen/VwYvmGv
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2019-12-09 10:12 PST by M. P.
Modified: 2023-09-19 17:24 PDT (History)
11 users (show)

See Also:


Attachments
Showcasing the bug. (1.02 KB, text/html)
2019-12-09 10:12 PST, M. P.
no flags Details
Comparison between Firefox and Safari (430.54 KB, image/png)
2020-04-24 10:40 PDT, Christian Kaindl
no flags Details
Safari 15.6 and STP 151 differ from other browsers (1.98 MB, image/png)
2022-08-13 08:04 PDT, Ahmad Saleem
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description M. P. 2019-12-09 10:12:32 PST
Created attachment 385164 [details]
Showcasing the bug.

I'm trying to use backdrop-filter(blur in this case) on a div only to discover the overflow: hidden property prevents it from applying. The browser is Chrome 78.

Say I've got a div.filter inside a div.block that's wrapper inside a div.container.

div.container > div.block > div.filter

If I apply overflow: hidden to both .container and .block the effect of the filter suddenly disappears. Furthermore, other properties of the .block prevents the filter from being applied.

Seems like the overflow: hidden on .container triggers this erratic behavior. Do you guys have any idea what's going on here?

Demo here: https://codepen.io/marcel_pi/pen/VwYvmGv
Comment 1 Radar WebKit Bug Importer 2019-12-11 13:45:50 PST
<rdar://problem/57851764>
Comment 2 Alexey Proskuryakov 2019-12-11 13:48:15 PST
This is reported against Chrome, but it *seems* like it affects WebKit?.. Not sure how to tell fore sure, because there is no description of expected behavior.
Comment 3 Christian Kaindl 2020-04-24 10:40:26 PDT
Created attachment 397470 [details]
Comparison between Firefox and Safari

Here's a comparison between Safari's and Firefox' behavior, both rendering the original demo attachment. On the left is Firefox (with the `layout.css.backdrop-filter.enabled` flag set) and on the right is Safari.
Comment 4 Simon Fraser (smfr) 2020-04-24 11:44:12 PDT
Maybe fixed by bug 208070. Please test STP 105.
Comment 5 Ahmad Saleem 2022-08-13 08:04:31 PDT
Created attachment 461577 [details]
Safari 15.6 and STP 151 differ from other browsers

I am able to reproduce this bug in Safari 15.6 and STP 151 as can be seen from attached screenshot compared to other browsers using attached test case. Thanks!
Comment 6 Matt Woodrow 2023-09-19 17:24:42 PDT
The test case here is using 'backdrop-filter', which isn't supported by Safari yet.

Using '-webkit-backdrop-filter' results in correct rendering.

Marking this as a duplicate of the bug to unprefix backdrop-filter.

*** This bug has been marked as a duplicate of bug 224899 ***