summaryrefslogtreecommitdiffstats
path: root/layout/style/test/test_backdrop_filter_enabled_state.html
diff options
context:
space:
mode:
Diffstat (limited to 'layout/style/test/test_backdrop_filter_enabled_state.html')
-rw-r--r--layout/style/test/test_backdrop_filter_enabled_state.html21
1 files changed, 21 insertions, 0 deletions
diff --git a/layout/style/test/test_backdrop_filter_enabled_state.html b/layout/style/test/test_backdrop_filter_enabled_state.html
new file mode 100644
index 0000000000..f8f2995b28
--- /dev/null
+++ b/layout/style/test/test_backdrop_filter_enabled_state.html
@@ -0,0 +1,21 @@
+<!DOCTYPE HTML>
+<head>
+ <meta charset=utf-8>
+ <title>Test Backdrop-Filter Enabled State</title>
+ <link rel="author" title="Erik Nordin" href="mailto:nordzilla@mozilla.com">
+ <script src="/tests/SimpleTest/SimpleTest.js"></script>
+</head>
+<script>
+SimpleTest.waitForExplicitFinish();
+
+(async function() {
+ for (let enabled of [true, false]) {
+ await SpecialPowers.pushPrefEnv({"set": [["layout.css.backdrop-filter.enabled", enabled]]});
+ is(enabled, CSS.supports("backdrop-filter: initial"),
+ "backdrop-filter is available only if backdrop-filter pref is set");
+ }
+ SimpleTest.finish();
+}());
+
+</script>
+