Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/ogone/src/ogone.dom.d.ts>DocumentOrShadowRoot

Advanced Web Composition for Future
Latest
interface DocumentOrShadowRoot
import { type DocumentOrShadowRoot } from "https://deno.land/x/ogone@revb3/src/ogone.dom.d.ts";

Properties

readonly
activeElement: Element | null
readonly
fullscreenElement: Element | null

Returns document's fullscreen element.

readonly
pointerLockElement: Element | null
readonly
styleSheets: StyleSheetList

Retrieves a collection of styleSheet objects representing the style sheets that correspond to each instance of a link or style object in the document.

Methods

caretPositionFromPoint(x: number, y: number): CaretPosition | null
deprecated
caretRangeFromPoint(x: number, y: number): Range
elementFromPoint(x: number, y: number): Element | null
elementsFromPoint(x: number, y: number): Element[]
getSelection(): Selection | null