aboutsummaryrefslogtreecommitdiff
path: root/files/ja/web/api/shadowroot/fullscreenelement/index.md
blob: b0191f1aa2ed747fa18b650d8e1b532ad1b8dced (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
---
title: ShadowRoot.fullscreenElement
slug: Web/API/ShadowRoot/fullscreenElement
tags:
  - API
  - プロパティ
  - リファレンス
  - ShadowRoot
  - ウェブコンポーネント
  - シャドウ DOM
browser-compat: api.ShadowRoot.fullscreenElement
translation_of: Web/API/ShadowRoot/fullscreenElement
---
{{APIRef("Shadow DOM")}}

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

## 構文

```js
shadowRoot.fullscreenElement
```

### 値

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

## 例

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

## 仕様書

{{Specifications}}

## ブラウザーの互換性

{{Compat}}

## 関連情報

- {{domxref("Document.fullscreenElement")}}