aboutsummaryrefslogtreecommitdiff
path: root/files/ja/web/api/shadowroot/delegatesfocus
diff options
context:
space:
mode:
authorPeter Bengtsson <mail@peterbe.com>2020-12-08 14:40:17 -0500
committerPeter Bengtsson <mail@peterbe.com>2020-12-08 14:40:17 -0500
commit33058f2b292b3a581333bdfb21b8f671898c5060 (patch)
tree51c3e392513ec574331b2d3f85c394445ea803c6 /files/ja/web/api/shadowroot/delegatesfocus
parent8b66d724f7caf0157093fb09cfec8fbd0c6ad50a (diff)
downloadtranslated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.gz
translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.bz2
translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.zip
initial commit
Diffstat (limited to 'files/ja/web/api/shadowroot/delegatesfocus')
-rw-r--r--files/ja/web/api/shadowroot/delegatesfocus/index.html50
1 files changed, 50 insertions, 0 deletions
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
+---
+<div>{{APIRef("Shadow DOM")}}</div>
+
+<p><strong><code>delegatesFocus</code></strong> は {{domxref("ShadowRoot")}} インターフェイスの読み取り専用プロパティで、シャドウが割り当てられたときに delegatesFocus が設定されていたかどうかを示す真偽値を返します ({{domxref("Element.attachShadow()")}} を参照)。</p>
+
+<p>これは現在のところ試験的な標準外の機能であり、 Chrome のみで使用可能です。</p>
+
+<h2 id="Syntax" name="Syntax">構文</h2>
+
+<pre class="syntaxbox">var <var>df</var> = <var>shadowRoot</var>.delegatesFocus</pre>
+
+<h3 id="Value" name="Value">値</h3>
+
+<p>真偽値 — シャドウルートがフォーカスを転送するのであれば <code>true</code>、そうでなければ <code>false</code>。</p>
+
+<h2 id="Examples" name="Examples">例</h2>
+
+<pre class="brush: js">let customElem = document.querySelector('my-shadow-dom-element');
+let shadow = customElem.shadowRoot;
+
+ ...
+
+// Does it delegate focus?
+let hostElem = shadow.delegatesFocus;</pre>
+
+<h2 id="Specifications" name="Specifications">仕様書</h2>
+
+<p>この機能は現在のところ、仕様書で定義されていません。</p>
+
+<h2 id="Browser_compatibility" name="Browser_compatibility">ブラウザーの対応</h2>
+
+<div class="hidden">このページの互換性一覧表は構造化データから生成されています。データに協力していただけるのであれば、 <a class="external" href="https://github.com/mdn/browser-compat-data">https://github.com/mdn/browser-compat-data</a> をチェックアウトしてプルリクエストを送信してください。</div>
+
+<p>{{Compat("api.ShadowRoot.delegatesFocus")}}</p>