property
Overlay — CSS reference
The user agent controls whether an element is rendered in the top layer. Authors cannot force top-layer placement by declaring overlay:auto. Include overlay in a discrete transition to defer removal during a closing transition; use native popover or dialog methods to enter the top layer.
Formal Syntax & Structure
css syntaxcss
overlay: auto;Working Example
Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>overlay</title><style>body{margin:8px;font:16px/24px sans-serif}#a{transition:overlay .2s allow-discrete}</style><body><button id="open" popovertarget="a">Show</button><div id="a" popover>Details</div></body></html>