overscroll-behavior-y CSS property

Limited availability

This feature is not Baseline because it does not work in some of the most widely-used browsers.

The overscroll-behavior-y CSS property sets the browser's behavior when the vertical boundary of a scrolling area is reached.

See overscroll-behavior for a full explanation.

Syntax

css
/* Keyword values */
overscroll-behavior-y: auto; /* default */
overscroll-behavior-y: contain;
overscroll-behavior-y: none;

/* Global values */
overscroll-behavior-y: inherit;
overscroll-behavior-y: initial;
overscroll-behavior-y: revert;
overscroll-behavior-y: revert-layer;
overscroll-behavior-y: unset;

The overscroll-behavior-y property is specified as a keyword chosen from the list of values below.

Values

auto

The default scroll overflow behavior occurs as normal.

contain

Default scroll overflow behavior (e.g., "bounce" effects) is observed inside the element where this value is set. However, no scroll chaining occurs on neighboring scrolling areas; the underlying elements will not scroll. The contain value disables native browser navigation, including the vertical pull-to-refresh gesture and horizontal swipe navigation.

none

No scroll chaining occurs to neighboring scrolling areas, and default scroll overflow behavior is prevented.

Formal definition

Initial valueauto
Applies tonon-replaced block-level elements and non-replaced inline-block elements
Inheritedno
Computed valueas specified
Animation typediscrete

Formal syntax

overscroll-behavior-y = 
contain |
none |
auto |
chain

Examples

Preventing an underlying element from scrolling vertically

css
.messages {
  height: 220px;
  overflow: auto;
  overscroll-behavior-y: contain;
}

See overscroll-behavior for a full example and explanation.

Specifications

Specification
CSS Overscroll Behavior Module Level 1
# overscroll-behavior-longhands-physical

Browser compatibility

desktop mobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
overscroll-behavior-y
Chrome – Partial support
Chrome 63 – 143 (Release date: 2017-12-06)
footnote Partial support
footnote The property has no effect on scroll containers that have no scrollable overflow.
Chrome – Full support
Chrome 144 (Release date: 2026-01-13)
footnote Full support
Edge – Full support
Edge 18 (Release date: 2018-10-02)
footnote Full support
Firefox – Partial support
Firefox 59 – 149 (Release date: 2018-03-13)
footnote Partial support
footnote The property has no effect on scroll containers that have no scrollable overflow.
Firefox – Full support
Firefox 150 (Release date: 2026-04-21)
footnote Full support
Opera – Partial support
Opera 50 – 127 (Release date: 2018-01-04)
footnote Partial support
footnote The property has no effect on scroll containers that have no scrollable overflow.
Opera – Full support
Opera 128 (Release date: 2026-02-26)
footnote Full support
Safari – Partial support
Safari 16 (Release date: 2022-09-12)
footnote Partial support
footnote The property has no effect on scroll containers that have no scrollable overflow.
footnote See bug 243452
Chrome Android – Partial support
Chrome Android 63 – 143 (Release date: 2017-12-05)
footnote Partial support
footnote The property has no effect on scroll containers that have no scrollable overflow.
Chrome Android – Full support
Chrome Android 144 (Release date: 2026-01-13)
footnote Full support
Firefox for Android – Partial support
Firefox for Android 59 – 149 (Release date: 2018-03-13)
footnote Partial support
footnote The property has no effect on scroll containers that have no scrollable overflow.
Firefox for Android – Full support
Firefox for Android 150 (Release date: 2026-04-21)
footnote Full support
Opera Android – Partial support
Opera Android 46 – 94 (Release date: 2018-05-14)
footnote Partial support
footnote The property has no effect on scroll containers that have no scrollable overflow.
Opera Android – Full support
Opera Android 95 (Release date: 2026-02-11)
footnote Full support
Safari on iOS – Partial support
Safari on iOS 16 (Release date: 2022-09-12)
footnote Partial support
footnote The property has no effect on scroll containers that have no scrollable overflow.
footnote See bug 243452
Samsung Internet – Partial support
Samsung Internet 8 (Release date: 2018-07-18)
footnote Partial support
footnote The property has no effect on scroll containers that have no scrollable overflow.
WebView Android – Partial support
WebView Android 63 – 143 (Release date: 2017-12-05)
footnote Partial support
footnote The property has no effect on scroll containers that have no scrollable overflow.
WebView Android – Full support
WebView Android 144 (Release date: 2026-01-13)
footnote Full support
WebView on iOS – Partial support
WebView on iOS 16 (Release date: 2022-09-12)
footnote Partial support
footnote The property has no effect on scroll containers that have no scrollable overflow.
footnote See bug 243452
auto
Chrome – Full support
Chrome 63 (Release date: 2017-12-06)
footnote Full support
Edge – Full support
Edge 18 (Release date: 2018-10-02)
footnote Full support
Firefox – Full support
Firefox 59 (Release date: 2018-03-13)
footnote Full support
Opera – Full support
Opera 50 (Release date: 2018-01-04)
footnote Full support
Safari – Full support
Safari 16 (Release date: 2022-09-12)
footnote Full support
Chrome Android – Full support
Chrome Android 63 (Release date: 2017-12-05)
footnote Full support
Firefox for Android – Full support
Firefox for Android 59 (Release date: 2018-03-13)
footnote Full support
Opera Android – Full support
Opera Android 46 (Release date: 2018-05-14)
footnote Full support
Safari on iOS – Full support
Safari on iOS 16 (Release date: 2022-09-12)
footnote Full support
Samsung Internet – Full support
Samsung Internet 8 (Release date: 2018-07-18)
footnote Full support
WebView Android – Full support
WebView Android 63 (Release date: 2017-12-05)
footnote Full support
WebView on iOS – Full support
WebView on iOS 16 (Release date: 2022-09-12)
footnote Full support
contain
Chrome – Full support
Chrome 63 (Release date: 2017-12-06)
footnote Full support
Edge – Full support
Edge 18 (Release date: 2018-10-02)
footnote Full support
Firefox – Full support
Firefox 59 (Release date: 2018-03-13)
footnote Full support
Opera – Full support
Opera 50 (Release date: 2018-01-04)
footnote Full support
Safari – Full support
Safari 16 (Release date: 2022-09-12)
footnote Full support
Chrome Android – Full support
Chrome Android 63 (Release date: 2017-12-05)
footnote Full support
Firefox for Android – Full support
Firefox for Android 59 (Release date: 2018-03-13)
footnote Full support
Opera Android – Full support
Opera Android 46 (Release date: 2018-05-14)
footnote Full support
Safari on iOS – Full support
Safari on iOS 16 (Release date: 2022-09-12)
footnote Full support
Samsung Internet – Full support
Samsung Internet 8 (Release date: 2018-07-18)
footnote Full support
WebView Android – Full support
WebView Android 63 (Release date: 2017-12-05)
footnote Full support
WebView on iOS – Full support
WebView on iOS 16 (Release date: 2022-09-12)
footnote Full support
none
Chrome – Full support
Chrome 63 (Release date: 2017-12-06)
footnote Full support
Edge – Partial support
Edge 18 – 18 (Release date: 2018-10-02)
footnote Partial support
footnote The none value incorrectly behaves as contain (allowing for the elastic bounce effect).
Edge – Full support
Edge 79 (Release date: 2020-01-15)
footnote Full support
Firefox – Full support
Firefox 59 (Release date: 2018-03-13)
footnote Full support
Opera – Full support
Opera 50 (Release date: 2018-01-04)
footnote Full support
Safari – Full support
Safari 16 (Release date: 2022-09-12)
footnote Full support
Chrome Android – Full support
Chrome Android 63 (Release date: 2017-12-05)
footnote Full support
Firefox for Android – Full support
Firefox for Android 59 (Release date: 2018-03-13)
footnote Full support
Opera Android – Full support
Opera Android 46 (Release date: 2018-05-14)
footnote Full support
Safari on iOS – Full support
Safari on iOS 16 (Release date: 2022-09-12)
footnote Full support
Samsung Internet – Full support
Samsung Internet 8 (Release date: 2018-07-18)
footnote Full support
WebView Android – Full support
WebView Android 63 (Release date: 2017-12-05)
footnote Full support
WebView on iOS – Full support
WebView on iOS 16 (Release date: 2022-09-12)
footnote Full support

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support
Partial support
Partial support
Has more compatibility info.

See also