1
0
mirror of https://github.com/svg/svgo.git synced 2026-01-27 07:02:06 +03:00
Files
svgo/docs/04-plugins/removeViewBox.mdx
2024-06-16 00:10:42 +01:00

16 lines
433 B
Plaintext

---
title: removeViewBox
svgo:
pluginId: removeViewBox
---
Removes the [`viewBox`](https://developer.mozilla.org/docs/Web/SVG/Attribute/viewBox) attribute where it matches the documents width and height.
:::danger
This plugin prevents SVGs from scaling, so they will not fill their parent container, or may clip if the container is too small.
See [svg/svgo#1128](https://github.com/svg/svgo/issues/1128) for more context.
:::