Liking cljdoc? Tell your friends :D

web.shadow-dom.DocumentOrShadowRoot

The DocumentOrShadowRoot mixin of the Shadow DOM API provides that are shared between documents and shadow roots. The following are included in both web.Document and web.shadow-dom.ShadowRoot.

The DocumentOrShadowRoot mixin of the Shadow DOM API provides
that are shared between documents and shadow roots. The following
are included in both `web.Document` and `web.shadow-dom.ShadowRoot`.
raw docstring

active-elementcljs

(active-element this)

Property.

[Read Only]

The activeElement read-only property of the web.Document and interfaces returns the web.Element within the DOM or shadow tree that currently has focus.

var element = DocumentOrShadowRoot.activeElement

See also: https://developer.mozilla.org/en-US/docs/Web/API/DocumentOrShadowRoot/activeElement

Property.

[Read Only]

The activeElement read-only property of the `web.Document` and
interfaces returns the `web.Element` within the DOM or shadow
tree that currently has focus.

`var element = DocumentOrShadowRoot.activeElement`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/DocumentOrShadowRoot/activeElement`
sourceraw docstring

caret-position-from-pointcljs

(caret-position-from-point this & args)

Method.

[Experimental]

The caretPositionFromPoint() property of the web.shadow-dom.DocumentOrShadowRoot returns a web.cssdom.CaretPosition object, containing the DOM along with the caret and caret's character offset within that

var caretPosition = document.caretPositionFromPoint(float x, float y);

See also: https://developer.mozilla.org/en-US/docs/Web/API/DocumentOrShadowRoot/caretPositionFromPoint

Method.

[Experimental]

The caretPositionFromPoint() property of the `web.shadow-dom.DocumentOrShadowRoot`
returns a `web.cssdom.CaretPosition` object, containing the DOM
along with the caret and caret's character offset within that

`var caretPosition = document.caretPositionFromPoint(float x, float y);`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/DocumentOrShadowRoot/caretPositionFromPoint`
sourceraw docstring

element-from-pointcljs

(element-from-point this x y)

Method.

The elementFromPoint() method—available on both the web.Document web.shadow-dom.ShadowRoot objects—returns the topmost web.Element the specified coordinates (relative to the viewport).

var element = document.elementFromPoint(x, y);

See also: https://developer.mozilla.org/en-US/docs/Web/API/DocumentOrShadowRoot/elementFromPoint

Method.

The elementFromPoint() method—available on both the `web.Document`
`web.shadow-dom.ShadowRoot` objects—returns the topmost `web.Element`
the specified coordinates (relative to the viewport).

`var element = document.elementFromPoint(x, y);`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/DocumentOrShadowRoot/elementFromPoint`
sourceraw docstring

elements-from-pointcljs

(elements-from-point this x y)

Method.

[Experimental]

The elementsFromPoint() property of the web.shadow-dom.DocumentOrShadowRoot returns an array of all elements at the specified coordinates to the viewport).

var elements = document.elementsFromPoint(x, y);

See also: https://developer.mozilla.org/en-US/docs/Web/API/DocumentOrShadowRoot/elementsFromPoint

Method.

[Experimental]

The elementsFromPoint() property of the `web.shadow-dom.DocumentOrShadowRoot`
returns an array of all elements at the specified coordinates
to the viewport).

`var elements = document.elementsFromPoint(x, y);`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/DocumentOrShadowRoot/elementsFromPoint`
sourceraw docstring

fullscreen-elementcljs

(fullscreen-element this)

Property.

[Read Only]

The DocumentOrShadowRoot.fullscreenElement read-only property the web.Element that is currently being presented in full-screen in this document, or null if full-screen mode is not currently use.

var element = document.fullscreenElement;

See also: https://developer.mozilla.org/en-US/docs/Web/API/DocumentOrShadowRoot/fullscreenElement

Property.

[Read Only]

The DocumentOrShadowRoot.fullscreenElement read-only property
the `web.Element` that is currently being presented in full-screen
in this document, or null if full-screen mode is not currently
use.

`var element = document.fullscreenElement;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/DocumentOrShadowRoot/fullscreenElement`
sourceraw docstring

get-selectioncljs

(get-selection this)

Method.

[Experimental]

The getSelection() property of the web.shadow-dom.DocumentOrShadowRoot returns a web.other.Selection object representing the range text selected by the user, or the current position of the caret.

var selection = documentOrShadowRootInstance.getSelection()

See also: https://developer.mozilla.org/en-US/docs/Web/API/DocumentOrShadowRoot/getSelection

Method.

[Experimental]

The getSelection() property of the `web.shadow-dom.DocumentOrShadowRoot`
returns a `web.other.Selection` object representing the range
text selected by the user, or the current position of the caret.

`var selection = documentOrShadowRootInstance.getSelection()`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/DocumentOrShadowRoot/getSelection`
sourceraw docstring

ms-elements-from-rectcljs

(ms-elements-from-rect this left top width height ret-val)

Method.

[Non Standard]

The msElementsFromRect method returns the node list of elements are under a rectangle defined by left, top, width, and height.

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

See also: https://developer.mozilla.org/en-US/docs/Web/API/DocumentOrShadowRoot/msElementsFromRect

Method.

[Non Standard]

The msElementsFromRect method returns the node list of elements
are under a rectangle defined by left, top, width, and height.

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

See also: `https://developer.mozilla.org/en-US/docs/Web/API/DocumentOrShadowRoot/msElementsFromRect`
sourceraw docstring

node-from-pointcljs

(node-from-point this x y)

Method.

[Non Standard]

The nodeFromPoint() property of the web.shadow-dom.DocumentOrShadowRoot returns the topmost node at the specified coordinates (relative the viewport).

var node = document.nodeFromPoint(x, y);

See also: https://developer.mozilla.org/en-US/docs/Web/API/DocumentOrShadowRoot/nodeFromPoint

Method.

[Non Standard]

The nodeFromPoint() property of the `web.shadow-dom.DocumentOrShadowRoot`
returns the topmost node at the specified coordinates (relative
the viewport).

`var node = document.nodeFromPoint(x, y);`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/DocumentOrShadowRoot/nodeFromPoint`
sourceraw docstring

nodes-from-pointcljs

(nodes-from-point this x y)

Method.

[Non Standard]

The nodesFromPoint() property of the web.shadow-dom.DocumentOrShadowRoot returns an array of all nodes at the specified coordinates (relative the viewport).

var nodes = document.nodesFromPoint(x, y);

See also: https://developer.mozilla.org/en-US/docs/Web/API/DocumentOrShadowRoot/nodesFromPoint

Method.

[Non Standard]

The nodesFromPoint() property of the `web.shadow-dom.DocumentOrShadowRoot`
returns an array of all nodes at the specified coordinates (relative
the viewport).

`var nodes = document.nodesFromPoint(x, y);`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/DocumentOrShadowRoot/nodesFromPoint`
sourceraw docstring

pointer-lock-elementcljs

(pointer-lock-element this)

Property.

[Read Only]

The pointerLockElement property of the web.Document and web.shadow-dom.ShadowRoot provides the element set as the target for mouse events while pointer is locked. It is null if lock is pending, pointer is or the target is in another document.

var element = document.pointerLockElement;

See also: https://developer.mozilla.org/en-US/docs/Web/API/DocumentOrShadowRoot/pointerLockElement

Property.

[Read Only]

The pointerLockElement property of the `web.Document` and `web.shadow-dom.ShadowRoot`
provides the element set as the target for mouse events while
pointer is locked. It is null if lock is pending, pointer is
or the target is in another document.

`var element = document.pointerLockElement;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/DocumentOrShadowRoot/pointerLockElement`
sourceraw docstring

style-sheetscljs

(style-sheets this)

Property.

[Read Only] [Experimental]

The styleSheets read-only property of the web.shadow-dom.DocumentOrShadowRoot returns a web.cssdom.StyleSheetList of web.cssdom.CSSStyleSheet for stylesheets explicitly linked into or embedded in a document.

See also: https://developer.mozilla.org/en-US/docs/Web/API/DocumentOrShadowRoot/styleSheets

Property.

[Read Only]
[Experimental]

The styleSheets read-only property of the `web.shadow-dom.DocumentOrShadowRoot`
returns a `web.cssdom.StyleSheetList` of `web.cssdom.CSSStyleSheet`
for stylesheets explicitly linked into or embedded in a document.

See also: `https://developer.mozilla.org/en-US/docs/Web/API/DocumentOrShadowRoot/styleSheets`
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close