Opens in a new tab
A picture of Jeff Brigman
I CODE TODAY FOR
A BETTER TOMORROW

Glossary Term

CSSStyleDeclaration.getPropertyValue()

3 tags 1 category

The CSSStyleDeclaration.getPropertyValue() method interface returns a string containing the value of a specified CSS property.

Inputs: property A string representing the property name (in hyphen case) to be checked.

Returns: A string containing the value of the property. If not set, returns the empty string.

Returns: The property value is dynamically computed, not what was originally specified in the declaration. The serialization happens in the following way:

Returns: If property is a shorthand property, then get all longhand properties it corresponds to. Note that shorthand properties specified in the original stylesheet were already expanded during parse time. If at least one of those longhand properties is undeclared, or their !important statuses differ, then the result is the empty string. Otherwise, a property value that expands to the same list of longhand property values is returned, and this shorthand value will omit as many components as possible, and reordered to match the canonical order in the formal definition if possible. If either of the above syntactic translations would be less backwards-compatible, do not perform them. Otherwise, the property is serialized according to its data type.

Term Connections

Explore related terms connected by shared tags, shared categories, and relationship phrases. This map loads only when it comes into view.

Loading term connections…