Sets the style properties of the specified target to the specified styles object with key of style property name and value of the corresponding property value.
target
styles
Element representation of target.
Element, EventTarget, or CSS selector.
Object with style property values keyed by name.
Element representation of the specified target.
elements!InvalidElementError if the target could not be found or doesn't have a style property.
elements!InvalidElementError
Sets the style properties of the specified
target
to the specifiedstyles
object with key of style property name and value of the corresponding property value.