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

Taught in

References