top layer
A special layer the browser draws above everything else on the page, used for modal dialogs, popovers and fullscreen elements.
In more detail
Elements enter it through APIs such as showModal(), the Popover API and requestFullscreen(). Elements in the top layer ignore z-index and overflow clipping from their ancestors, so a modal can never be hidden behind other content.
Related terms
- dialog element — The native HTML element for dialogs; opened with showModal() it becomes an accessible modal with a backdrop and focus containment.
Taught in
- Pointer Events, Focus Trapping And Keyboard Accessibility — Frontend Architecture & Web Platform