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];
|
var inner = g.content[0];
|
||||||
|
|
||||||
if (inner.isElem() && !inner.hasAttr('id') && (
|
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')
|
inner.isElem('g') && !g.hasAttr('transform') && !inner.hasAttr('transform')
|
||||||
)) {
|
)) {
|
||||||
g.eachAttr(function(attr) {
|
g.eachAttr(function(attr) {
|
||||||
|
@@ -2,9 +2,13 @@
|
|||||||
<clipPath id="a">
|
<clipPath id="a">
|
||||||
<path d="..."/>
|
<path d="..."/>
|
||||||
</clipPath>
|
</clipPath>
|
||||||
|
<path d="..."/>
|
||||||
<g clip-path="url(#a)">
|
<g clip-path="url(#a)">
|
||||||
<path d="..." transform="scale(.2)"/>
|
<path d="..." transform="scale(.2)"/>
|
||||||
</g>
|
</g>
|
||||||
|
<g mask="url(#a)">
|
||||||
|
<path d="..." transform="scale(.2)"/>
|
||||||
|
</g>
|
||||||
</svg>
|
</svg>
|
||||||
|
|
||||||
@@@
|
@@@
|
||||||
@@ -13,7 +17,11 @@
|
|||||||
<clipPath id="a">
|
<clipPath id="a">
|
||||||
<path d="..."/>
|
<path d="..."/>
|
||||||
</clipPath>
|
</clipPath>
|
||||||
|
<path d="..."/>
|
||||||
<g clip-path="url(#a)">
|
<g clip-path="url(#a)">
|
||||||
<path d="..." transform="scale(.2)"/>
|
<path d="..." transform="scale(.2)"/>
|
||||||
</g>
|
</g>
|
||||||
|
<g mask="url(#a)">
|
||||||
|
<path d="..." transform="scale(.2)"/>
|
||||||
|
</g>
|
||||||
</svg>
|
</svg>
|
||||||
|
Before Width: | Height: | Size: 391 B After Width: | Height: | Size: 587 B |
Reference in New Issue
Block a user