CSS
Margin collapsing
Adjacent vertical margins combining into the larger of the two rather than summing.
Why interviewers ask about it
Surprises everyone once. Flex and grid containers do not collapse margins, which is one reason `gap` is easier to reason about.
Related terms
This term is part of the free Python Full-Stack interview preparation module - browse the full glossary for every definition.