Skip to main content

Function: safeComputedStyle()

function safeComputedStyle(
element: Element,
property: string
): string | undefined;

Defined in: utils/ui/controls/enableTabButtonsHelpers.ts:11

Safely get computed style values when available.

Parameters​

element​

Element

Element to inspect.

property​

string

CSS property name.

Returns​

string | undefined

Computed style value when available.