Skip to main content
Version: 1.x

@microsoft/fast-element > StyleTarget > prepend

StyleTarget.prepend() method

Warning: This API is now obsolete.

  • use append()

Adds styles to the target by prepending the styles.

Signature:
prepend(styles: HTMLStyleElement): void;

Parameters

ParameterTypeDescription
stylesHTMLStyleElementThe styles element to add.
Returns:

void