1
0
mirror of https://github.com/svg/svgo.git synced 2025-07-29 20:21:14 +03:00
Files
svgo/test/plugins/removeOffCanvasPaths.06.svg
Bogdan Chadkin 5ad2d4a5f6 Refactor removeOffCanvasPaths plugin (#1545)
- refactored with visitor plugin api
- covered with types
- replaced parentNode traverse with visitSkip symbol
- replaced regex path parser with parsePathData
- get rid from global state which lead test case to invalid state
2021-08-27 17:15:18 +03:00

22 lines
570 B
XML

Should not throw when viewBox isn't present
===
<svg xmlns="http://www.w3.org/2000/svg">
<path d="M10 10 h 80 v 80 h -80 z"/>
<path d="M10 -90 h 80 v 80 h -80 z"/>
<path d="M110 10 h 80 v 80 h -80 z"/>
<path d="M10 110 h 80 v 80 h -80 z"/>
<path d="M-90 10 h 80 v 80 h -80 z"/>
</svg>
@@@
<svg xmlns="http://www.w3.org/2000/svg">
<path d="M10 10 h 80 v 80 h -80 z"/>
<path d="M10 -90 h 80 v 80 h -80 z"/>
<path d="M110 10 h 80 v 80 h -80 z"/>
<path d="M10 110 h 80 v 80 h -80 z"/>
<path d="M-90 10 h 80 v 80 h -80 z"/>
</svg>