Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

style

Returns the value of the style property with the specified name for the specified node. If the node has an inline style with the specified name, its value is returned; otherwise, the computed property value is returned. See also selection.style.

function style(node: Element, name: string): string;
§
style(node: Element, name: string): string
[src]

§Parameters

§
node: Element
[src]

A DOM node (e.g. HTMLElement, SVGElement) for which to retrieve the style property.

§
name: string
[src]

Style property name.

§Return Type

§
string
[src]