web api instance property
ShadowRoot: fullscreenElement property
The fullscreenElement read-only property of the
ShadowRoot interface returns the element within the shadow tree that is currently displayed in full screen.
Value
The Element which is currently is displayed in full screen mode,
or null if there is no full screen element.
Examples
let customElem = document.querySelector("my-shadow-dom-element");
let shadow = customElem.shadowRoot;
let fullscreenElem = shadow.fullscreenElement;
Specifications
SpecificationsStandards references are available on the canonical MDN page.
Browser compatibility
Browser compatibilityCompatibility data is available on the canonical MDN page.