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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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

set-active-element!cljs

(set-active-element! this val)

Property.

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.

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

set-pointer-lock-element!cljs

(set-pointer-lock-element! this val)

Property.

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.

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

set-style-sheets!cljs

(set-style-sheets! this val)

Property.

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.

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

style-sheetscljs

(style-sheets this)

Property.

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.

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