See MDN for details

The following are the BFC trigger conditions

1. Float element (float of element is not None)

2. Absolute position element (element position is absolute or fixed)

3. Inline elements

Overflow is not a visible block element

5. Elastic elements (display is a direct child of flex or inline-flex)