Don't generate root filters when generating a glyph mask.

As per https://searchfox.org/mozilla-central/rev/c0bed29d643393af6ebe77aa31455f283f169202/layout/generic/nsIFrame.cpp#3470

Differential Revision: https://phabricator.services.mozilla.com/D154083

bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1782303
gecko-commit: 2dbc9711abda343b99576053bf4088eb092cf014
gecko-reviewers: mstange
diff --git a/css/compositing/root-element-filter-background-clip-text-crash.html b/css/compositing/root-element-filter-background-clip-text-crash.html
new file mode 100644
index 0000000..e12e4bb
--- /dev/null
+++ b/css/compositing/root-element-filter-background-clip-text-crash.html
@@ -0,0 +1,15 @@
+<!doctype html>
+<link rel=help href="https://bugzilla.mozilla.org/show_bug.cgi?id=1782303">
+<style>
+* {
+  filter: sepia(1);
+  background-color: rgb(179, 31, 172);
+  background-clip: text;
+}
+</style>
+<script>
+document.addEventListener('DOMContentLoaded', () => {
+  a.data = "#"
+})
+</script>
+<object id="a">