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: 155Edge
12–18Not supported
79+Supportedsince Jan 15, 2020
Current: 154Firefox
1–60Not supported
61+Supportedsince Jun 26, 2018
Current: 157Safari
1–13Not supported
13.1+Supportedsince Mar 24, 2020
Current: 27MobileChrome Android
18–67Not supported
68+Supportedsince Jul 24, 2018
Current: 155Firefox Android
4–60Not supported
61+Supportedsince Jun 26, 2018
Current: 157Safari iOS
1–13Not supported
13.4+Supportedsince Mar 24, 2020
Current: 27How 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
}Documentation (MDN)
Specification
Usage share
Sub-features
Support for each part of the feature (17). The overall table above shows when the whole feature works.
| Sub-feature | Chrome | Edge | Firefox | Safari | Chrome Android | Firefox Android | Safari iOS |
|---|---|---|---|---|---|---|---|
| overflow | 1 | 12 | 1 | 1 | 18 | 4 | 1 |
| overflow-x | 1 | 12 | 3.5 | 3 | 18 | 4 | 1 |
| overflow-x.auto | 1 | 12 | 3.5 | 3 | 18 | 4 | 2 |
| overflow-x.hidden | 1 | 12 | 3.5 | 3 | 18 | 4 | 2 |
| overflow-x.scroll | 1 | 12 | 3.5 | 3 | 18 | 4 | 2 |
| overflow-x.visible | 1 | 12 | 3.5 | 3 | 18 | 4 | 2 |
| overflow-y | 1 | 12 | 3.5 | 3 | 18 | 4 | 1 |
| overflow-y.auto | 1 | 12 | 3.5 | 3 | 18 | 4 | 2 |
| overflow-y.hidden | 1 | 12 | 3.5 | 3 | 18 | 4 | 2 |
| overflow-y.scroll | 1 | 12 | 3.5 | 3 | 18 | 4 | 2 |
| overflow-y.visible | 1 | 12 | 3.5 | 3 | 18 | 4 | 2 |
| overflow.auto | 1 | 12 | 1 | 3 | 18 | 4 | 2 |
| overflow.hidden | 1 | 12 | 1 | 3 | 18 | 4 | 2 |
| overflow.multiple_keywords | 68 | 79 | 61 | 13.1 | 68 | 61 | 13.4 |
| overflow.scroll | 1 | 12 | 1 | 3 | 18 | 4 | 2 |
| overflow.visible | 1 | 12 | 1 | 3 | 18 | 4 | 2 |
| <overflow> | 1 | 12 | 1 | 1 | 18 | 4 | 1 |