aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/orphaned/web/api/documentorshadowroot/index.html
diff options
context:
space:
mode:
authorPeter Bengtsson <mail@peterbe.com>2021-07-16 16:27:00 -0400
committerGitHub <noreply@github.com>2021-07-17 04:27:00 +0800
commitb9afb23d12dcae1e09f8d04c72143c5ddaa34aea (patch)
treef6c20844119bcaf0131ad4a037e0245577927f2c /files/zh-cn/orphaned/web/api/documentorshadowroot/index.html
parent1aa671566c3a990ec2df9a46137471d624b6f7ff (diff)
downloadtranslated-content-b9afb23d12dcae1e09f8d04c72143c5ddaa34aea.tar.gz
translated-content-b9afb23d12dcae1e09f8d04c72143c5ddaa34aea.tar.bz2
translated-content-b9afb23d12dcae1e09f8d04c72143c5ddaa34aea.zip
delete conflicting/orphaned docs (zh-CN) (#1412)
* delete conflicting docs (zh-CN) * and redirects * do orphaned as well * fix * remove more orphans * revert orphaned docs that can identify origin * move orphaned docs to current loc * adjust slug path * fix redirect change from rebase Co-authored-by: Irvin <irvinfly@gmail.com>
Diffstat (limited to 'files/zh-cn/orphaned/web/api/documentorshadowroot/index.html')
-rw-r--r--files/zh-cn/orphaned/web/api/documentorshadowroot/index.html79
1 files changed, 0 insertions, 79 deletions
diff --git a/files/zh-cn/orphaned/web/api/documentorshadowroot/index.html b/files/zh-cn/orphaned/web/api/documentorshadowroot/index.html
deleted file mode 100644
index cc18771f80..0000000000
--- a/files/zh-cn/orphaned/web/api/documentorshadowroot/index.html
+++ /dev/null
@@ -1,79 +0,0 @@
----
-title: DocumentOrShadowRoot
-slug: orphaned/Web/API/DocumentOrShadowRoot
-tags:
- - API
- - DocumentOrShadowRoot
- - Interface
- - NeedsTranslation
- - Reference
- - TopicStub
- - shadow dom
-translation_of: Web/API/DocumentOrShadowRoot
-original_slug: Web/API/DocumentOrShadowRoot
----
-<div>{{APIRef("Web Components")}}</div>
-
-<p><span class="seoSummary"><a href="/zh-CN/docs/Web/Web_Components/Using_shadow_DOM">Shadow DOM API</a> 的 <strong><code>DocumentOrShadowRoot</code></strong> 接口提供了 documents 与 shadow roots 之间共享的 API。The following features are included in both {{DOMxRef("Document")}} and {{DOMxRef("ShadowRoot")}}.</span></p>
-
-<h2 id="属性">属性</h2>
-
-<dl>
- <dt>{{DOMxRef("DocumentOrShadowRoot.activeElement")}}{{ReadOnlyInline}}</dt>
- <dd>Returns the {{DOMxRef('Element')}} within the shadow tree that has focus.</dd>
- <dt>{{DOMxRef("DocumentOrShadowRoot.fullscreenElement")}}{{ReadOnlyInline}}</dt>
- <dd>Returns the {{DOMxRef('Element')}} that's currently in full screen mode for this document.</dd>
- <dt>{{DOMxRef("DocumentOrShadowRoot.pointerLockElement")}} {{Experimental_Inline}}{{ReadOnlyInline}}</dt>
- <dd>Returns the element set as the target for mouse events while the pointer is locked. It returns <code>null</code> if lock is pending, the pointer is unlocked, or if the target is in another document.</dd>
- <dt>{{DOMxRef("DocumentOrShadowRoot.styleSheets")}}{{ReadOnlyInline}}</dt>
- <dd>Returns a {{DOMxRef('StyleSheetList')}} of {{DOMxRef('CSSStyleSheet')}} objects for stylesheets explicitly linked into, or embedded in a document.</dd>
-</dl>
-
-<h2 id="方法">方法</h2>
-
-<dl>
- <dt>{{DOMxRef("DocumentOrShadowRoot.caretPositionFromPoint()")}}</dt>
- <dd>Returns a {{DOMxRef('CaretPosition')}} object containing the DOM node containing the caret, and caret's character offset within that node.</dd>
- <dt>{{DOMxRef("DocumentOrShadowRoot.elementFromPoint()")}}</dt>
- <dd>Returns the topmost element at the specified coordinates.</dd>
- <dt>{{DOMxRef("DocumentOrShadowRoot.elementsFromPoint()")}}</dt>
- <dd>Returns an array of all elements at the specified coordinates.</dd>
- <dt>{{DOMxRef("DocumentOrShadowRoot.getSelection()")}}</dt>
- <dd>Returns a {{DOMxRef('Selection')}} object representing the range of text selected by the user, or the current position of the caret.</dd>
- <dt>{{DOMxRef("DocumentOrShadowRoot.nodeFromPoint()")}} {{non-standard_inline}}</dt>
- <dd>Returns the topmost node at the specified coordinates.</dd>
- <dt>{{DOMxRef("DocumentOrShadowRoot.nodesFromPoint()")}} {{non-standard_inline}}</dt>
- <dd>Returns an array of all nodes at the specified coordinates.</dd>
-</dl>
-
-<h2 id="Specifications">Specifications</h2>
-
-<table class="standard-table">
- <thead>
- <tr>
- <th scope="col">Specification</th>
- <th scope="col">Status</th>
- <th scope="col">Comment</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>{{SpecName('Shadow DOM','#extensions-to-the-documentorshadowroot-mixin','DocumentOrShadowRoot')}}</td>
- <td>{{Spec2('Shadow DOM')}}</td>
- <td>Implementation in Shadow DOM.</td>
- </tr>
- <tr>
- <td>{{SpecName('DOM WHATWG','#mixin-documentorshadowroot','DocumentOrShadowRoot')}}</td>
- <td>{{Spec2('DOM WHATWG')}}</td>
- <td>Initial definition.</td>
- </tr>
- </tbody>
-</table>
-
-<h2 id="浏览器兼容性">浏览器兼容性</h2>
-
-
-
-<p>{{Compat("api.DocumentOrShadowRoot")}}</p>
-
-<p>[1] This interface's features are still implemented on the {{DOMxRef("Document")}} object.</p>