Trusted by 2 Mn+ QAs & Devs to accelerate their release cycles
The overlay property is a non-standard property to make scrollbars display on top of content rather than below it. This feature is being standardized as the scrollbar-gutter property. By default, the overflow-anchor value is auto and it lets you mitigate this jarring user experience by keeping track of the position of an anchor node and adjusting the scroll offset accordingly.
Last updated on : 2023-03-20
Browser Versions
IE
Edge
Firefox
Chrome
Safari
Opera
Fully Supported
Partially
No Support
Inherited
no
Applies to
Block-containers, flex containers, and grid containers
Initial value
visible
Animation type
discrete
Computed value
overflow-x: as specified, except with visible/clip computing to auto/hidden respectively if one of overflow-x or overflow-y is neither visible nor clip overflow-y: as specified, except with visible/clip computing to auto/hidden respectively if one of overflow-x or overflow-y is neither visible nor clip
CSS Overflow Module Level 3 # propdef-overflow
/* Keyword values */
overflow: visible;
overflow: hidden;
overflow: clip;
overflow: scroll;
overflow: auto;
overflow: hidden visible;
/* Global values */
overflow: inherit;
overflow: initial;
overflow: revert;
overflow: unset;
CSS overflow: overlay on IE is not supported on any IE versions.
CSS overflow: overlay on Edge is fully supported on 79-111, and not supported on 12-18 Edge versions.
CSS overflow: overlay on Firefox is not supported on any Firefox versions.
CSS overflow: overlay on Chrome is fully supported on all Chrome versions.
CSS overflow: overlay on Safari is fully supported on 4-11.1, and not supported on 12-16.4 Safari versions.
CSS overflow: overlay on Opera is fully supported on 15-95, and not supported on 9.5-12.1 Opera versions.
CSS overflow: overlay on Safari on iOS is fully supported on 4.2-11.3, and not supported on 12-16.4 Safari on iOS versions.
CSS overflow: overlay on Android Browser is fully supported on all Android Browser versions.
CSS overflow: overlay on Opera Mobile is fully supported on 64-73, and not supported on 10-12 Opera Mobile versions.
CSS overflow: overlay on Chrome for Android is fully supported on all Chrome for Android versions.
CSS overflow: overlay on Firefox for Android is not supported on any Firefox for Android versions.
CSS overflow: overlay on Samsung Internet is fully supported on all Samsung Internet versions.
Data sourced from
Overall Browser Compatibility Score
Note:CSS overflow: overlay shows a browser compatibility score of 58. This is a collective score out of 100 to represent browser support of a web technology. The higher this score is, the greater is the browser compatibility. The browser compatibility score is not a 100% reflection for every browser and the web technology support. However, it does give you an estimate on how much you should rely on a particular web technology in terms of browser compatibility.
Test on 3000+ browsers for CSS overflow: overlay & more
Test your website for CSS overflow: overlay and other web technologies. Get 100 FREE automation test minutes!
Test NowKaneAI - Testing Assistant
World’s first AI-Powered E2E testing agent.
Did you find this page helpful?