CSSStyleRule.styleMap

Draft
This page is not complete.

This is an experimental technology
Check 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 1
The definition of 'styleMap' in that specification.
Working Draft Initial definition.

Browser compatibility

DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
styleMapChrome Full support 65Edge Full support ≤79Firefox ? IE ? Opera Full support YesSafari ? WebView Android Full support 65Chrome Android Full support 65Firefox Android ? Opera Android Full support YesSafari iOS ? Samsung Internet Android Full support 9.0

Legend

Full support
Full support
Compatibility unknown
Compatibility unknown