We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f92112d commit 18a81edCopy full SHA for 18a81ed
src/common/browser/backdropFilterDetector.ts
@@ -0,0 +1,18 @@
1
+export function isSupportBackdropFilter() {
2
+ let isSupported = false;
3
+ const propertyName = "backdropFilter";
4
+ const propertyValue = "blur(10px)";
5
+
6
+ if (CSS && CSS.supports) {
7
+ return CSS.supports("backdrop-filter", propertyValue);
8
+ } else {
9
+ const { style } = document.createElement("div");
10
+ isSupported = style[propertyName] !== void 0;
11
+ if (isSupported) {
12
+ style[propertyName] = propertyValue;
13
+ isSupported = style.cssText.length !== 0;
14
+ }
15
16
+ return isSupported;
17
18
+}
0 commit comments