Top layer

The top layer is a specific layer in the stacking context, which spans the entire width and height of the viewport and sits on top of all other layers displayed in a web document. It is created by the browser to contain elements that should appear on top of all other content on the page.

Elements that will appear in the top layer include:

The following screenshot demonstrates how a shown popover element is placed in the top layer in Chrome:

An element in the top layer, as shown in the chrome devtools

See also