ShadowRoot: fullscreenElement プロパティ
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
fullscreenElement
は ShadowRoot
インターフェイスの読み取り専用プロパティで、現在全画面モードで表示されているシャドウツリー内の要素を返します。
値
現在全画面モードで表示されている 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② |
ブラウザーの互換性
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
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.
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.