Movatterモバイル変換


[0]ホーム

URL:


  1. Web
  2. Web APIs
  3. ShadowRoot
  4. fullscreenElement

ShadowRoot: fullscreenElement property

Limited availability

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

ThefullscreenElement read-only property of theShadowRoot interface returns the element within the shadow tree that is currently displayed in full screen.

Value

TheElement which is currently is displayed in full screen mode,ornull if there is no full screen element.

Examples

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

Specifications

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

Browser compatibility

See also

Help improve MDN

Learn how to contribute

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2026 Movatter.jp