This is an experimental technology
Check the Browser compatibility table carefully before using this in production.

The StylePropertyMapReadOnly interface of the the CSS Typed Object Model API provides a read-only representation of a CSS declaration block that is an alternative to CSSStyleDeclaration. Retrieve an instance of this interface using Element.computedStyleMap().


Returns an unsinged long integer containing the size of the StylePropertyMapReadOnly object.


Returns an array of a given object's own enumerable property [key, value] pairs, in the same order as that provided by a loop (the difference being that a for-in loop enumerates properties in the prototype chain as well).
Executes a provided function once for each element of StylePropertyMapReadOnly.
Returns the value of the specified property.
Returns an array of CSSStyleValue objects containing the values for the provided property.
Indicates whether the specified property is in the StylePropertyMapReadOnly object.
Returns a new Array Iterator containing the keys for each item in StylePropertyMapReadOnly.
Returns a new Array Iterator containing the values for each index in the StylePropertyMapReadOnly object.


Specification Status Comment
CSS Typed OM Level 1
The definition of 'StylePropertyMapReadOnly' in that specification.
Working Draft Initial definition.

Browser compatibility

FeatureChromeEdgeFirefoxInternet ExplorerOperaSafari
Basic support66 No No No53 No
@@iterator66 No No No53 No
entries66 No No No53 No
forEach66 No No No53 No
get66 No No No53 No
getAll66 No No No53 No
has66 No No No53 No
Basic support66 No No No53 No
size66 No No No53 No
values66 No No No53 No
FeatureAndroid webviewChrome for AndroidEdge mobileFirefox for AndroidOpera AndroidiOS SafariSamsung Internet
Basic support6666 No No53 No ?
@@iterator6666 No No53 No ?
entries6666 No No53 No ?
forEach6666 No No53 No ?
get6666 No No53 No ?
getAll6666 No No53 No ?
has6666 No No53 No ?
Basic support6666 No No53 No ?
size6666 No No53 No ?
values6666 No No53 No ?

Document Tags and Contributors

Contributors to this page: jpmedley
Last updated by: jpmedley,