Style objects and collections in JavaScript
Base style objects:
Style sheets and rules:
Objects for style values:
Additional objects:
Object | Support | Description | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
CSSStyleDeclaration |
|
Represents the computed style settings for an element. | ||||||||||
currentStyle | Represents the computed style settings for an element. | |||||||||||
runtimeStyle | Represents the overridden style settings for an element. | |||||||||||
style | Represents the inline style settings for an element or a CSS rule. |
Object | Support | Description | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
CSSCharsetRule | Represents a style rule or at-rule in JavaScript. | |||||||||||
CSSFontFaceRule |
|
Represents a style rule or at-rule in JavaScript. | ||||||||||
CSSImportRule |
|
Represents a style rule or at-rule in JavaScript. | ||||||||||
CSSMediaRule |
|
Represents a style rule or at-rule in JavaScript. | ||||||||||
CSSPageRule |
|
Represents a style rule or at-rule in JavaScript. | ||||||||||
CSSRule |
|
Represents a style rule or at-rule in JavaScript. | ||||||||||
cssRules |
|
Represents a collection of CSS rules in a styleSheet or media rule. | ||||||||||
CSSStyleRule |
|
Represents a style rule or at-rule in JavaScript. | ||||||||||
imports | Represents a collection of all styleSheet objects that were imported by a styleSheet object. | |||||||||||
page | Represents a @page at-rule. | |||||||||||
pages | Represents a collection of all @page at-rules in a styleSheet object. | |||||||||||
rule | Represents a style rule in JavaScript. | |||||||||||
rules | Represents a collection of style rules in a styleSheet. | |||||||||||
styleSheet | Represents a CSS style sheet that belongs to a style element or an imported style file. | |||||||||||
styleSheets | Represents a collection of styleSheet objects in the current document. |
Object | Support | Description | |||||
---|---|---|---|---|---|---|---|
CSSPrimitiveValue | Represents the value of a simple style property and its type. | ||||||
CSSValue | Represents the value of a style property and its type. | ||||||
CSSValueList | Represents the value of a complex style property and its type. | ||||||
Counter | Represents a style value when it is a counter function. | ||||||
Rect | Represents a style value when it is a rect function. | ||||||
RGBColor | Represents a style value when it is color. |
Object | Support | Description | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
behaviorUrns | Represents a collection of the Uniform Resource Names for all behaviors attached to an element. | |||||||||||
filter | Represents a visual filter or transition defined by the filter style property. | |||||||||||
filters | Represents a collection of all filter objects applied to an element. | |||||||||||
mediaList |
|
Represents a collection of media types defined for an at-rule or a style sheet. |
User Contributed Comments