Get the Newsletter

getComputedStyle

A Method

getComputedStyle(element: Element): CSSStyleDeclaration

Gives the values of all the CSS properties of an element after applying the active stylesheets and resolving any basic computation those values may contain.

Parameters

element: Element
The Element for which to get the computed style.

Returns

The computed styles.