In CSS, adjacent margins can sometimes overlap. This is known as “margin collapse”.
Margin collapse occurs when vertically adjacent margins of block-level elements collide to share a general margin space. The larger number margin dictates the size of this shared space.
If a margin of 24px collides with a margin of 56px, the 56px margin will win. If a margin of -24px collides with a margin of -56px, -56px will win.
This will help prevent unnecessary variants for the functionality of adding/removing space within components.
Toggling margin collapse as conditional in auto layout will save time and get design closer to development.
Here is more on margin collapse.