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.

getPropertyValue

Summary

Gets the value of a property in a CSS style declaration.

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

Syntax

var value = declaration.getPropertyValue(property);

Parameters

property

Data-type
String

The name of the property.

Return Value

Returns an object of type StringString

The value of the property if it is explicitly set for this declaration block, or null.

Related specifications

DOM Level 2 Style
Recommendation

Attributions