Skip to content

StyleValues

StyleValues = Record<string, string | number | null | undefined>

Defined in: core/dom/styles.ts:9

Inline styles for setStyles, keyed by DOM property name (camelCase), e.g. { marginLeft: '5px' }. Numbers are converted to strings. null and undefined clear the property.

Not limited to the names in lib.dom, so vendor properties such as msTransform are allowed.