coderef

Overflow media queriesBaseline · Widely available

The overflow-block and overflow-inline CSS media queries set styles based on the way a device displays content that's larger than the viewport or page area. For example, a laptop lets users scroll to reveal content, while a printer displays overflowing content on additional pages.

Supported in all major browsers for at least 30 months — safe to use without fallbacks. Baseline since Sep 18, 2023. Widely available since Mar 18, 2026.

Browser support

DesktopChrome
1–112Not supported
113+Supportedsince May 2, 2023
Current: 155
Edge
12–112Not supported
113+Supportedsince May 5, 2023
Current: 154
Firefox
1–65Not supported
66+Supportedsince Mar 19, 2019
Current: 157
Safari
1–16.6Not supported
17+Supportedsince Sep 18, 2023
Current: 27
MobileChrome Android
18–112Not supported
113+Supportedsince May 2, 2023
Current: 155
Firefox Android
4–65Not supported
66+Supportedsince Mar 19, 2019
Current: 157
Safari iOS
1–16.6Not supported
17+Supportedsince Sep 18, 2023
Current: 27

How to use

This feature is Baseline widely available — use it freely, no fallback needed.

Example

Full syntax and examples are on MDN: overflow-block.

Feature detection

There’s no simple runtime check for this feature; rely on the support table and test in your target browsers.

Sub-features

Support for each part of the feature (2). The overall table above shows when the whole feature works.

Sub-featureChromeEdgeFirefoxSafariChrome AndroidFirefox AndroidSafari iOS
@media.overflow-block11311366171136617
@media.overflow-inline11311366171136617