This page is Almost Ready

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

removeProperty

Summary

Removes a property from a CSS style declaration.

Method of css/cssom/CSSStyleDeclaration/CSSStyleDeclarationcss/cssom/CSSStyleDeclaration/CSSStyleDeclaration

Syntax

var value = declaration.removeProperty(property);

Parameters

property

Data-type
String

The name of the property to remove.

Return Value

Returns an object of type StringString

The value of the property if it is explicitly set for this declaration block, or null if the property is not explicitly set for this declaration block or if the property name does not correspond to a known CSS property.

Related specifications

DOM Level 2 Style
Recommendation

Attributions