mirror of
https://github.com/svg/svgo.git
synced 2025-08-06 04:22:39 +03:00
@@ -52,7 +52,7 @@ exports.fn = function(item) {
|
||||
var inner = g.content[0];
|
||||
|
||||
if (inner.isElem() && !inner.hasAttr('id') && (
|
||||
!g.hasAttr('clip-path') ||
|
||||
!g.hasAttr('clip-path') && !g.hasAttr('mask') ||
|
||||
inner.isElem('g') && !g.hasAttr('transform') && !inner.hasAttr('transform')
|
||||
)) {
|
||||
g.eachAttr(function(attr) {
|
||||
|
@@ -2,9 +2,13 @@
|
||||
<clipPath id="a">
|
||||
<path d="..."/>
|
||||
</clipPath>
|
||||
<path d="..."/>
|
||||
<g clip-path="url(#a)">
|
||||
<path d="..." transform="scale(.2)"/>
|
||||
</g>
|
||||
<g mask="url(#a)">
|
||||
<path d="..." transform="scale(.2)"/>
|
||||
</g>
|
||||
</svg>
|
||||
|
||||
@@@
|
||||
@@ -13,7 +17,11 @@
|
||||
<clipPath id="a">
|
||||
<path d="..."/>
|
||||
</clipPath>
|
||||
<path d="..."/>
|
||||
<g clip-path="url(#a)">
|
||||
<path d="..." transform="scale(.2)"/>
|
||||
</g>
|
||||
<g mask="url(#a)">
|
||||
<path d="..." transform="scale(.2)"/>
|
||||
</g>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 391 B After Width: | Height: | Size: 587 B |
Reference in New Issue
Block a user