You are here: Reference > JavaScript > client-side > style handling > objects

Style objects and collections in JavaScript

Base style objects:
Object Support Description
CSSStyleDeclaration
9
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.
Style sheets and rules:
Object Support Description
CSSCharsetRule
Represents a style rule or at-rule in JavaScript.
CSSFontFaceRule
9
Represents a style rule or at-rule in JavaScript.
CSSImportRule
9
Represents a style rule or at-rule in JavaScript.
CSSMediaRule
9
Represents a style rule or at-rule in JavaScript.
CSSPageRule
9
Represents a style rule or at-rule in JavaScript.
CSSRule
9
Represents a style rule or at-rule in JavaScript.
cssRules
9
Represents a collection of CSS rules in a styleSheet or media rule.
CSSStyleRule
9
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.
Objects for style values:
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.
Additional objects:
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
9
Represents a collection of media types defined for an at-rule or a style sheet.
User Contributed Comments

Post Content

Post Content