I am facing an issue with the interaction of the mask-image
and backdrop-filter
attributes on Chrome v116.
My goal is to create a gradient-blur effect over text. While this works correctly in Firefox, Chrome only displays a solid white block.
This is how it appears in Firefox v116:
https://i.sstatic.net/ltqIl.png
However, this is how it shows up in Chrome v116:
https://i.sstatic.net/oE584.png
Here is the code snippet I am using:
<div class="gradient-blur" *ngIf="checkOverflowBlurGradient(container)">
</div>
.gradient-blur {
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
mask-image: linear-gradient(to bottom, transparent, #F8F9FA);
-webkit-mask-image: linear-gradient(to bottom, transparent, #F8F9FA);
opacity: 1;
}
I consulted caniuse.com and found that Chrome v116 should support these properties according to the documentation.
Now I am trying to determine whether this issue is browser-specific or related to my implementation.