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

17 lines
649 B
Plaintext

---
title: collapseGroups
svgo:
pluginId: collapseGroups
defaultPlugin: true
---
Finds groups that effectively do nothing and flattens them, preserving the contents of the groups.
Groups can be formed using the [`<g>`](https://developer.mozilla.org/docs/Web/SVG/Element/g) element. They're used for organizing the document, or applying [presentation attributes](https://developer.mozilla.org/docs/Web/SVG/Attribute/Presentation) to all children contained in a group.
:::info
This plugin doesn't remove empty groups. That's handled by the [removeEmptyContainers](/docs/plugins/removeEmptyContainers/) plugin which is enabled by default.
:::