HTML API

style

Sets a new value for a property on a CSS style declaration object.
Throws an exception when the application cannot find a match for the element or attributes are different. See HTML live edit for further information.

tilepieces.core.htmlMatch.style(element, propertyName, value, priority);

Parameters

element
DOM element
propertyName
DOMString representing the CSS property name (hyphen case) to be modified.
value
DOMString containing the new property value. If not specified, treated as the empty string. Note: value must not contain "!important", that should be set using the priority parameter.
priority 
DOMString allowing the "important" CSS priority to be set. If not specified, treated as the empty string. The following values are accepted:
  • String value "important"
  • Keyword undefined
  • String empty value ""

Return Value

None.