overlay
Limited availability74% of usersExperimental
A property used for elements in the 'top layer' (like <dialog> or popovers). It specifies whether an element should be rendered in the top layer even when it's not the active modal.
What's modern
From web-features, MDN's browser data and our snippets, checked dailyComingNot in Firefox or Safari yet, so not every major browser supports it.
See how modern your own CSS is.Check your CSS →
Quick facts
- Initial value
none- Inherited
- No
- Applies to
- all elements
- Animation type
- discreteButVisibleForDurationWhenAnimatedNone
Quick example
.active-popover {
/* Ensures the popover stays in the top layer during transitions */
overlay: auto;
transition: overlay 0.5s allow-discrete;
}Values
noneautooverlay browser support
BaselineLimited availabilityThis feature is not Baseline because it does not work in some of the most widely-used browsers.Not ready for production without a fallback.
Usage74%of people can use this26% use a browser without it.
Browsers
117+
117+Mobile
117+Android