Skip to content

setCssStyles

Assigns camelCase style declarations to the element’s inline style.

Import:

import 'obsidian-test-mocks/setup';

Signature:

function setCssStyles(this: HTMLElement, styles: Partial<CSSStyleDeclaration>): void

Parameters:

Parameter Type Description
this HTMLElement
styles Partial<CSSStyleDeclaration> The style declarations to assign.

Returns: void