CSSStyleDeclaration interface represents an object that is a CSS declaration block, and exposes style information and various style-related methods and properties.CSSStyleDeclaration object can be exposed using three different APIs:The cssFloat attribute can be set for elements that generate boxes that are not absolutely positioned. The cssFloat attribute corresponds to the float Cascading Style Sheets (CSS) property. Getting this attribute is equivalent to calling the getProperty method. Setting this attribute is equivalent to calling the setProperty method.
Promise<string>Textual representation of the declaration block. Setting this attribute changes the style.
Promise<string>The number of properties. See the item() method below.
Promise<number>The containing CSSRule.
CSSRuleReturns the optional priority, "important".
string. property is a string representing the property name to be checked.Promise<string>Returns the property value given a property name.
string. property is a string representing the property name (hyphen case) to be checked.Promise<string>Returns a property name.
number. index is the index of the node to be fetched. The index is zero-based.Promise<string>Removes a property from the CSS declaration block.
string. property is a string representing the property name to be removed. Note that multi-word property names are hyphenated and not camel-cased.Promise<string>Modifies an existing CSS property or creates a new CSS property in the declaration block.
string. propertyName is a string representing the CSS property name (hyphen case) to be modified.string. value Optional is a string containing the new property value. If not specified, treated as the empty string. value* must not contain "!important" -- that should be set using the *priority* parameter.string. priorityOptional is a string allowing the "important" CSS priority to be set. If not specified, treated as the empty string. The following values are accepted: "important"undefined""Promise<void>