CSS·Advanced·Conceptual·1 min read
What establishes a new block formatting context?
Short interview answer
Several properties do, including flow-root, certain overflow values, floats, positioned elements, and flex or grid items. A BFC contains floats and changes margin interactions.
Key takeaway
Explain the underlying mental model clearly, then support it with a concrete example and its trade-offs.