mirror of
https://github.com/svg/svgo.git
synced 2025-08-07 15:22:54 +03:00
Keep empty <mask> which can hide element by id
This commit is contained in:
@@ -32,6 +32,8 @@ exports.fn = function(item) {
|
||||
(item.isElem('pattern') && item.hasAttrLocal('href')) ||
|
||||
// The 'g' may not have content, but the filter may cause a rectangle
|
||||
// to be created and filled with pattern.
|
||||
(item.isElem('g') && item.hasAttr('filter'))
|
||||
(item.isElem('g') && item.hasAttr('filter')) ||
|
||||
// empty <mask> hides masked element
|
||||
(item.isElem('mask') && item.hasAttr('id'))
|
||||
);
|
||||
};
|
||||
|
Reference in New Issue
Block a user