DocumentOrShadowRoot

Overview

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

Location

Properties


activeElement

 

property activeElement: Element read;

 

Element activeElement { get; }

 

var activeElement: Element { get{} }

 

Element activeElement { __get; }

 

ReadOnly Property activeElement() As Element

fullscreenElement

 

property fullscreenElement: Element read;

 

Element fullscreenElement { get; }

 

var fullscreenElement: Element { get{} }

 

Element fullscreenElement { __get; }

 

ReadOnly Property fullscreenElement() As Element

styleSheets

 

property styleSheets: CSSStyleSheet read;

 

CSSStyleSheet styleSheets { get; }

 

var styleSheets: CSSStyleSheet { get{} }

 

CSSStyleSheet styleSheets { __get; }

 

ReadOnly Property styleSheets() As CSSStyleSheet

Required Methods


elementFromPoint

Returns the topmost element at the specified coordinates.

 

method elementFromPoint(parx: dynamic; pary: dynamic): Element

 

Element elementFromPoint(dynamic parx, dynamic pary)

 

func elementFromPoint(_ parx: dynamic, _ pary: dynamic) -> Element

 

Element elementFromPoint(dynamic parx, dynamic pary)

 

Function elementFromPoint(parx As dynamic, pary As dynamic) As Element

Parameters:

  • parx:
  • pary: