From 9a156759565dd2fc69becdef99b30e2405c41687 Mon Sep 17 00:00:00 2001 From: Masahiro FUJIMOTO Date: Fri, 30 Jul 2021 12:55:26 +0900 Subject: orphaned/Web/API/DocumentOrShadowRoot 以下を削除 (#1586) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * orphaned/Web/API/DocumentOrShadowRoot 以下を削除 --- .../web/api/documentorshadowroot/index.html | 77 ---------------------- .../mselementsfromrect/index.html | 55 ---------------- 2 files changed, 132 deletions(-) delete mode 100644 files/ja/orphaned/web/api/documentorshadowroot/index.html delete mode 100644 files/ja/orphaned/web/api/documentorshadowroot/mselementsfromrect/index.html (limited to 'files/ja/orphaned/web/api') diff --git a/files/ja/orphaned/web/api/documentorshadowroot/index.html b/files/ja/orphaned/web/api/documentorshadowroot/index.html deleted file mode 100644 index 34431a10d3..0000000000 --- a/files/ja/orphaned/web/api/documentorshadowroot/index.html +++ /dev/null @@ -1,77 +0,0 @@ ---- -title: DocumentOrShadowRoot -slug: orphaned/Web/API/DocumentOrShadowRoot -tags: - - API - - Document - - DocumentOrShadowRoot - - Reference - - ShadowRoot - - インターフェイス - - シャドウ DOM -translation_of: Web/API/DocumentOrShadowRoot -original_slug: Web/API/DocumentOrShadowRoot ---- -
{{APIRef("Web Components")}}
- -

DocumentOrShadowRootShadow DOM API のミックスインで、文書とシャドウルートで共有される API を提供します。以下の機能は {{DOMxRef("Document")}} と {{DOMxRef("ShadowRoot")}} の両方に含まれています。

- -

プロパティ

- -
-
{{DOMxRef("DocumentOrShadowRoot.activeElement")}}{{ReadOnlyInline}}
-
シャドウツリー内でフォーカスを持っている {{DOMxRef('Element')}} を返します。
-
{{DOMxRef("DocumentOrShadowRoot.fullscreenElement")}}{{ReadOnlyInline}}
-
この文書で現在全画面モードになっている {{DOMxRef('Element')}} を返します。
-
{{DOMxRef("DocumentOrShadowRoot.pointerLockElement")}} {{Experimental_Inline}}{{ReadOnlyInline}}
-
ポインターがロックされている間、マウスイベントのターゲットとして設定された要素を返します。ロック待ちの場合、ポインターがロックされていない場合、ターゲットが別な文書である場合は null を返します。
-
{{DOMxRef("DocumentOrShadowRoot.styleSheets")}}{{ReadOnlyInline}}
-
文書に明示的にリンクされているか、埋め込まれているスタイルシートの {{DOMxRef('CSSStyleSheet')}} オブジェクトの {{DOMxRef('StyleSheetList')}} を返します。
-
- -

メソッド

- -
-
{{DOMxRef("DocumentOrShadowRoot.caretPositionFromPoint()")}}
-
キャレットを含んでいる DOM ノードと、そのノード内におけるキャレットの文字のオフセットを含む {{DOMxRef('CaretPosition')}} オブジェクトを返します。
-
{{DOMxRef("DocumentOrShadowRoot.elementFromPoint()")}}
-
指定された座標にある最上位の要素を返します。
-
{{DOMxRef("DocumentOrShadowRoot.elementsFromPoint()")}}
-
指定された座標にあるすべての要素の配列を返します。
-
{{DOMxRef("DocumentOrShadowRoot.getSelection()")}}
-
ユーザーによって選択されているテキストの範囲、またはキャレットの現在の位置を表す {{DOMxRef('Selection')}} オブジェクトを返します。
-
{{DOMxRef("DocumentOrShadowRoot.nodeFromPoint()")}} {{non-standard_inline}}
-
指定された座標にある最上位のノードを返します。
-
{{DOMxRef("DocumentOrShadowRoot.nodesFromPoint()")}} {{non-standard_inline}}
-
指定された座標にあるすべてのノードの配列を返します。
-
- -

仕様書

- - - - - - - - - - - - - - - - - - - - - -
仕様書状態備考
{{SpecName('Shadow DOM','#extensions-to-the-documentorshadowroot-mixin','DocumentOrShadowRoot')}}{{Spec2('Shadow DOM')}}Shadow DOM で実装。
{{SpecName('DOM WHATWG','#mixin-documentorshadowroot','DocumentOrShadowRoot')}}{{Spec2('DOM WHATWG')}}初回定義
- -

ブラウザーの対応

- -

{{Compat("api.DocumentOrShadowRoot")}}

- -

[1] このインターフェイスの機能は {{DOMxRef("Document")}} オブジェクトにも実装されています。

diff --git a/files/ja/orphaned/web/api/documentorshadowroot/mselementsfromrect/index.html b/files/ja/orphaned/web/api/documentorshadowroot/mselementsfromrect/index.html deleted file mode 100644 index a9c431e07a..0000000000 --- a/files/ja/orphaned/web/api/documentorshadowroot/mselementsfromrect/index.html +++ /dev/null @@ -1,55 +0,0 @@ ---- -title: DocumentOrShadowRoot.msElementsFromRect() -slug: orphaned/Web/API/DocumentOrShadowRoot/msElementsFromRect -tags: - - API - - API:Microsoft Extensions - - Method - - Non-standard - - Reference - - msElementsFromRect -translation_of: Web/API/DocumentOrShadowRoot/msElementsFromRect -original_slug: Web/API/DocumentOrShadowRoot/msElementsFromRect ---- -
{{APIRef("Microsoft Extensions")}}{{Non-standard_Header}}
- -

msElementsFromRect メソッドは、left、 top、 width、 heighで定義された四角形の下にある要素のノードリストを返します。

- -

この独自プロパティは Internet Explorer と Microsoft Edge に固有のものです。

- -

構文

- -
object.msElementsFromRect(left, top, width, height, retVal)
-
- -

パラメータ

- -
-
left [in]
-
型: 浮動小数点
-
top[in]
-
型: 浮動小数点
-
width[in]
-
型: 浮動小数点
-
height [in]
-
型: 浮動小数点
-
retVal [out, reval]
-
型: ノードリスト
-
- -

- -

特定のポイントの下にある全ての要素を検索するには、 msElementsFromPoint(x, y) を使用します。長方形を交差する全ての要素を見つけるには、 msElementsFromRect(top, left, width, height) を使用します。

- -
var nodeList = document.msElementsFromRect(x,y,width,height)
-var nodeList = document.msElementsFromPoint(x,y)
-
- -

返された nodeList には z-index でソートされているため、要素の相対的なスタック順序を確認できます。

- -

関連項目

- - -- cgit v1.2.3-54-g00ecf