Skip to main content

Function: getBrowserComputedStyle()

function getBrowserComputedStyle():
| ((elt: Element, pseudoElt?: string | null) => CSSStyleDeclaration)
| undefined;

Defined in: utils/runtime/browserRuntime.ts:221

Returns​

Function​

(elt: Element, pseudoElt?: string | null) => CSSStyleDeclaration;

The Window.getComputedStyle() method returns a live read-only CSSStyleProperties object containing the resolved values of all CSS properties of an element, after applying active stylesheets and resolving any computation those values may contain.

MDN Reference

Parameters​

elt​

Element

pseudoElt?​

string | null

Returns​

CSSStyleDeclaration


undefined