Web/API/CSSStyleRule/styleMap

From Get docs

Draft This page is not complete.


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


The styleMap read-only property of the CSSStyleRule interface returns a StylePropertyMap object which provides access to the rule's property-value pairs.

Syntax

var stylePropertyMap = cssStyleRule.styleMap;

Value

A StylePropertyMap object.

Specifications

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

Browser compatibility

Update compatibility data on GitHub

Desktop Mobile
Chrome Edge Firefox Internet Explorer Opera Safari Android webview Chrome for Android Firefox for Android Opera for Android Safari on iOS Samsung Internet
styleMap Chrome

Full support 65

Edge

Full support ≤79

Firefox

?

IE

No support No

Opera

Full support Yes

Safari

?

WebView Android

Full support 65

Chrome Android

Full support 65

Firefox Android

?

Opera Android

Full support Yes

Safari iOS

?

Samsung Internet Android

Full support 9.0

Legend

Full support  
Full support
No support  
No support
Compatibility unknown  
Compatibility unknown