ShadowRoot: fullscreenElement-Eigenschaft

Limited availability

This feature is not Baseline because it does not work in some of the most widely-used browsers.

Die fullscreenElement schreibgeschützte Eigenschaft des ShadowRoot-Interfaces gibt das Element innerhalb des Schattenbaums zurück, das momentan im Vollbild angezeigt wird.

Wert

Das Element, das derzeit im Vollbildmodus angezeigt wird, oder null, wenn kein Vollbild-Element vorhanden ist.

Beispiele

js
let customElem = document.querySelector("my-shadow-dom-element");
let shadow = customElem.shadowRoot;
let fullscreenElem = shadow.fullscreenElement;

Spezifikationen

Specification
Fullscreen API
# ref-for-dom-document-fullscreenelement②

Browser-Kompatibilität

Report problems with this compatibility data on GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
fullscreenElement

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support
Partial support
Partial support
Uses a non-standard name.
Has more compatibility info.

Siehe auch