mirror of
https://github.com/svg/svgo.git
synced 2025-07-31 07:44:22 +03:00
Fixed transform moving around the mask as well
This commit is contained in:
@ -39,7 +39,7 @@ exports.fn = function(item) {
|
||||
|
||||
var intersection = {},
|
||||
hasTransform = false,
|
||||
hasClip = item.hasAttr('clip-path'),
|
||||
hasClip = item.hasAttr('clip-path') || item.hasAttr('mask'),
|
||||
intersected = item.content.every(function(inner) {
|
||||
if (inner.isElem() && inner.hasAttr()) {
|
||||
if (!Object.keys(intersection).length) {
|
||||
|
Reference in New Issue
Block a user