Stay organized with collections Save and categorize content based on your preferences.

blockly > utils > style > getCascadedStyle

utils.style.getCascadedStyle() function

No longer provided by Blockly.

Gets the cascaded style value of a node, or null if the value cannot be computed (only Internet Explorer can do this).

Copied from Closure's goog.style.getCascadedStyle

Signature:

export declare function getCascadedStyle(element: Element, style: string): string;

Parameters

Parameter Type Description
element Element Element to get style of.
style string Property to get (camel-case).

Returns:

string

Style value.