From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- .../web/api/shadowroot/delegatesfocus/index.html | 50 ++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 files/ja/web/api/shadowroot/delegatesfocus/index.html (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 new file mode 100644 index 0000000000..4250313ada --- /dev/null +++ b/files/ja/web/api/shadowroot/delegatesfocus/index.html @@ -0,0 +1,50 @@ +--- +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