coderef

overflowBaseline · Widely available

The overflow CSS property sets the behavior for when content doesn't fit in an element.

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

Browser support

DesktopChrome
1–67Not supported
68+Supportedsince Jul 24, 2018
Current: 155
Edge
12–18Not supported
79+Supportedsince Jan 15, 2020
Current: 154
Firefox
1–60Not supported
61+Supportedsince Jun 26, 2018
Current: 157
Safari
1–13Not supported
13.1+Supportedsince Mar 24, 2020
Current: 27
MobileChrome Android
18–67Not supported
68+Supportedsince Jul 24, 2018
Current: 155
Firefox Android
4–60Not supported
61+Supportedsince Jun 26, 2018
Current: 157
Safari iOS
1–13Not supported
13.4+Supportedsince Mar 24, 2020
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.

Feature detection

CSS · check before using
@supports (overflow: initial) {
  /* styles that rely on overflow */
}

/* or in JavaScript */
if (CSS.supports("overflow", "initial")) {
  // use it
}

Sub-features

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

Sub-featureChromeEdgeFirefoxSafariChrome AndroidFirefox AndroidSafari iOS
overflow112111841
overflow-x1123.531841
overflow-x.auto1123.531842
overflow-x.hidden1123.531842
overflow-x.scroll1123.531842
overflow-x.visible1123.531842
overflow-y1123.531841
overflow-y.auto1123.531842
overflow-y.hidden1123.531842
overflow-y.scroll1123.531842
overflow-y.visible1123.531842
overflow.auto112131842
overflow.hidden112131842
overflow.multiple_keywords68796113.1686113.4
overflow.scroll112131842
overflow.visible112131842
<overflow>112111841