← 返回首页
ShadowRoot: fullscreenElement プロパティ - Web API | MDN

このページはコミュニティーの尽力で英語から翻訳されました。MDN Web Docs コミュニティーについてもっと知り、仲間になるにはこちらから。

View in English Always switch to English

ShadowRoot: fullscreenElement プロパティ

Limited availability

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

fullscreenElementShadowRoot インターフェイスの読み取り専用プロパティで、現在全画面モードで表示されているシャドウツリー内の要素を返します。

In this article

現在全画面モードで表示されている Element、または全画面モードの要素がなければ null を返します。

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

仕様書

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

ブラウザーの互換性

Enable JavaScript to view this browser compatibility table.

関連情報