From dc71e650dcf3d799268a2b15ca6526b890ea9653 Mon Sep 17 00:00:00 2001 From: Masahiro FUJIMOTO Date: Tue, 18 Jan 2022 17:24:23 +0900 Subject: ShadowRoot インターフェイス以下の記事を移行 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../web/api/shadowroot/delegatesfocus/index.html | 48 ---------------------- .../ja/web/api/shadowroot/delegatesfocus/index.md | 48 ++++++++++++++++++++++ 2 files changed, 48 insertions(+), 48 deletions(-) delete mode 100644 files/ja/web/api/shadowroot/delegatesfocus/index.html create mode 100644 files/ja/web/api/shadowroot/delegatesfocus/index.md (limited to 'files/ja/web/api/shadowroot/delegatesfocus') diff --git a/files/ja/web/api/shadowroot/delegatesfocus/index.html b/files/ja/web/api/shadowroot/delegatesfocus/index.html deleted file mode 100644 index 8c2e45a5fe..0000000000 --- a/files/ja/web/api/shadowroot/delegatesfocus/index.html +++ /dev/null @@ -1,48 +0,0 @@ ---- -title: ShadowRoot.delegatesFocus -slug: Web/API/ShadowRoot/delegatesFocus -tags: - - API - - Non-standard - - Property - - Read-only - - Reference - - ShadowRoot - - Web Components - - delegatesFocus - - shadow dom - - プロパティ - - 読み取り専用 -translation_of: Web/API/ShadowRoot/delegatesFocus ---- -
{{APIRef("Shadow DOM")}}
- -

delegatesFocus は {{domxref("ShadowRoot")}} インターフェイスの読み取り専用プロパティで、シャドウが割り当てられたときに delegatesFocus が設定されていたかどうかを示す真偽値を返します ({{domxref("Element.attachShadow()")}} を参照)。

- -

これは現在のところ試験的な標準外の機能であり、 Chrome のみで使用可能です。

- -

構文

- -
var df = shadowRoot.delegatesFocus
- -

- -

真偽値 — シャドウルートがフォーカスを転送するのであれば true、そうでなければ false

- -

- -
let customElem = document.querySelector('my-shadow-dom-element');
-let shadow = customElem.shadowRoot;
-
-  ...
-
-// Does it delegate focus?
-let hostElem = shadow.delegatesFocus;
- -

仕様書

- -

この機能は現在のところ、仕様書で定義されていません。

- -

ブラウザーの対応

- -

{{Compat("api.ShadowRoot.delegatesFocus")}}

diff --git a/files/ja/web/api/shadowroot/delegatesfocus/index.md b/files/ja/web/api/shadowroot/delegatesfocus/index.md new file mode 100644 index 0000000000..8c2e45a5fe --- /dev/null +++ b/files/ja/web/api/shadowroot/delegatesfocus/index.md @@ -0,0 +1,48 @@ +--- +title: ShadowRoot.delegatesFocus +slug: Web/API/ShadowRoot/delegatesFocus +tags: + - API + - Non-standard + - Property + - Read-only + - Reference + - ShadowRoot + - Web Components + - delegatesFocus + - shadow dom + - プロパティ + - 読み取り専用 +translation_of: Web/API/ShadowRoot/delegatesFocus +--- +
{{APIRef("Shadow DOM")}}
+ +

delegatesFocus は {{domxref("ShadowRoot")}} インターフェイスの読み取り専用プロパティで、シャドウが割り当てられたときに delegatesFocus が設定されていたかどうかを示す真偽値を返します ({{domxref("Element.attachShadow()")}} を参照)。

+ +

これは現在のところ試験的な標準外の機能であり、 Chrome のみで使用可能です。

+ +

構文

+ +
var df = shadowRoot.delegatesFocus
+ +

+ +

真偽値 — シャドウルートがフォーカスを転送するのであれば true、そうでなければ false

+ +

+ +
let customElem = document.querySelector('my-shadow-dom-element');
+let shadow = customElem.shadowRoot;
+
+  ...
+
+// Does it delegate focus?
+let hostElem = shadow.delegatesFocus;
+ +

仕様書

+ +

この機能は現在のところ、仕様書で定義されていません。

+ +

ブラウザーの対応

+ +

{{Compat("api.ShadowRoot.delegatesFocus")}}

-- cgit v1.2.3-54-g00ecf