diff --git a/plugins/moveElemsAttrsToGroup.js b/plugins/moveElemsAttrsToGroup.js
index 96fa6f8a0..5efd79f20 100644
--- a/plugins/moveElemsAttrsToGroup.js
+++ b/plugins/moveElemsAttrsToGroup.js
@@ -86,8 +86,9 @@ export const fn = (root) => {
}
}
- // preserve transform on children when group has clip-path or mask
+ // preserve transform on children when group has filter or clip-path or mask
if (
+ node.attributes['filter'] != null ||
node.attributes['clip-path'] != null ||
node.attributes.mask != null
) {
diff --git a/test/plugins/moveElemsAttrsToGroup.08.svg.txt b/test/plugins/moveElemsAttrsToGroup.08.svg.txt
new file mode 100644
index 000000000..549629b02
--- /dev/null
+++ b/test/plugins/moveElemsAttrsToGroup.08.svg.txt
@@ -0,0 +1,29 @@
+Don't move transform if there is a filter attribute on group.
+
+===
+
+
+
+@@@
+
+