Open
Description
Describe the bug
When optimizing an SVG with a pattern that's referenced by a path, the resulting SVG does not contain the referenced pattern anymore.
To Reproduce
- Download input.svg
- Run
svgo -i input.svg -o output.svg
- The resulting
output.svg
doesn't display anything anymore. File size of input is224 KB
, output is233 bytes
.
Expected behavior
The resulting SVG is displays the pattern.
Screenshots
Input | Output |
---|---|
![]() |
![]() |
Desktop
SVGO Version: 3.3.2
NodeJs Version: 20.15.1
OS: macOS 15.2
CPU: (12) arm64 Apple M2 Pro
Memory: 95.89 MB / 16.00 GB
Shell: 5.9 - /bin/zsh

Activity