display: flow-rootExternal Link

BaselineWidely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2022.

The element generates a block container box, and lays out its contents using flow layout. It always establishes a new block formatting context for its contents. It provides a better solution to the most use cases of the "clearfix" hack.

IE
Edge
Firefox
Chrome
Safari
Safari iOS
Opera Mini
Chrome Android
Android Browser
Samsung Internet
Globals: 97.33% of all users can use this feature, 97.33% fully supported, 0% partially supported
✓Supported
✗Not supported
Partial support