Web platform features explorer

overflow: overlay

This feature is discouraged — Some old browsers may implement non-standard behavior for overflow: overlay.

Consider using overflow instead.

For more information, see: css-overflow-3/#valdef-overflow-overlay (CSSWG draft)

The overflow: overlay CSS declaration is an alias to overflow: auto. Historically, it caused non-standard behavior, allowing scrollbars to overlay content without taking up layout space.

Status

Discouraged

MDN documentation

Browser support (view on caniuse.com)

  • Chrome 114 Released on 2023-05-30
  • Chrome Android 114 Released on 2023-05-30
  • Edge 114 Released on 2023-06-02
  • Firefox 112 Released on 2023-04-11
  • Firefox for Android 112 Released on 2023-04-11
  • Safari 12 Released on 2018-09-17
  • Safari on iOS 12 Released on 2018-09-17