The set() method of the StylePropertyMap interface changes the CSS declaration using the given property.
set(property)
set(property, value1)
set(property, value1, value2)
set(property, value1, value2, /* …, */ valueN)propertyAn identifier indicating the stylistic feature (e.g., font, width, background color) to change.
value1, …, valueNThe value(s) the given property should have.
None (undefined).
This example sets the specified value for the padding-top property within the element's style attribute.
// get the button element
const buttonEl = document.querySelector("button");
// set padding-top on button style attribute
buttonEl.attributeStyleMap.set("padding-top", CSS.px(10));