display: flow-rootBaseline · Widely available
The display: flow-root CSS declaration sets an element as the root element of a new flow layout for its children, preventing margin collapse with sibling elements.
Supported in all major browsers for at least 30 months — safe to use without fallbacks. Baseline since Jan 15, 2020. Widely available since Jul 15, 2022.
Browser support
DesktopChrome
1–57Not supported
58+Supportedsince Apr 19, 2017
Current: 155Edge
12–18Not supported
79+Supportedsince Jan 15, 2020
Current: 154Firefox
1–52Not supported
53+Supportedsince Apr 19, 2017
Current: 157Safari
1–12.1Not supported
13+Supportedsince Sep 19, 2019
Current: 27MobileChrome Android
18–57Not supported
58+Supportedsince Apr 25, 2017
Current: 155Firefox Android
4–52Not supported
53+Supportedsince Apr 19, 2017
Current: 157Safari iOS
1–12.2Not supported
13+Supportedsince Sep 19, 2019
Current: 27How to use
This feature is Baseline widely available — use it freely, no fallback needed.
Example
Full syntax and examples are on MDN — see the links below.
Feature detection
CSS · check before using
@supports (display: flow-root) {
/* styles that rely on display: flow-root */
}
/* or in JavaScript */
if (CSS.supports("display", "flow-root")) {
// use it
}