Is there a way to detect if the backdrop filter is supported?
Well… there some ways to handle it
You could wrap all your custom styles in a .platform-ios
target since ios is the only platform that supports it.
Only iOS 9 and above right?
What I want to do is apply an opacity: 0.5 to a div where backdrop-filter is supported, and when it’s not supported, the opacity to be 1. Even on ios versions that doesn’t support it.
Is using Modernizr a good solution?
not really, you dont need modernizr for this. Ionic already provides a method for this
Ionic adds classes to the body that will allow you to target different versions. So for this, you’d do
.platform-ios9_0 .element {}
Oh. Will do that. Thank you.