1
0
mirror of https://github.com/svg/svgo.git synced 2025-07-29 20:21:14 +03:00
Files
svgo/test/plugins/removeHiddenElems.02.svg
2021-03-29 02:34:34 +03:00

25 lines
493 B
XML

Remove elements with zero opacity
===
<svg xmlns="http://www.w3.org/2000/svg">
<style>
.a { opacity: 0.5; }
</style>
<g>
<rect opacity="0" x="0" y="0" width="20" height="20" />
<rect opacity="0" class="a" x="0" y="0" width="20" height="20" />
</g>
</svg>
@@@
<svg xmlns="http://www.w3.org/2000/svg">
<style>
.a { opacity: 0.5; }
</style>
<g>
<rect opacity="0" class="a" x="0" y="0" width="20" height="20"/>
</g>
</svg>