Document Object Model CSS
-
Editors
- Chris Wilson, Microsoft Corp.
- Philippe Le Hégaret, W3C
- Vidur Apparao, Netscape Communications Corp.
Table of contents
- 2.1. Overview of the DOM Level 2 CSS Interfaces
- 2.2. CSS Fundamental Interfaces
- CSSStyleSheet, CSSRuleList, CSSRule, CSSStyleRule, CSSMediaRule, CSSFontFaceRule, CSSPageRule, CSSImportRule, CSSCharsetRule, CSSUnknownRule, CSSStyleDeclaration, CSSValue, CSSPrimitiveValue, CSSValueList, RGBColor, Rect, Counter
- 2.2.1. Override and computed style sheet
- 2.2.2. Style sheet creation
- 2.2.3. Element with CSS inline style
- 2.3. CSS2 Extended Interface
2.1. Overview of the DOM Level 2 CSS Interfaces
The DOM Level 2 Cascading Style Sheets (CSS) interfaces are designed with the goal of exposing CSS constructs to object model consumers. Cascading Style Sheets is a declarative syntax for defining presentation rules, properties and ancillary constructs used to format and render Web documents. This document specifies a mechanism to programmatically access and modify the rich style and presentation control provided by CSS (specifically CSS level 2 [CSS2]). This augments CSS by providing a mechanism to dynamically control the inclusion and exclusion of individual style sheets, as well as manipulate CSS rules and properties.
The CSS interfaces are organized in a logical, rather than physical structure. A collection of all style sheets referenced by or embedded in the document is accessible on the document interface. Each item in this collection exposes the properties common to all style sheets referenced or embedded in HTML and XML documents; this interface is described in the Document Object Model Style Sheets. User style sheets are not accessible through this collection, in part due to potential privacy concerns (and certainly read-write issues).
For each CSS style sheet, an additional interface is exposed -
the CSSStyleSheet
interface. This interface allows access to the collection of rules
within a CSS style sheet and methods to modify that collection.
Interfaces are provided for each specific type of rule in CSS2
(e.g. style declarations, @import
rules, or
@font-face
rules), as well as a shared generic CSSRule
interface.
The most common type of rule is a style declaration. The CSSStyleRule
interface that represents this type of rule provides string access
to the CSS selector of the rule, and access to the property
declarations through the CSSStyleDeclaration
interface.
Finally, an optional CSS2Properties
interface is described; this interface (if implemented) provides
shortcuts to the string values of all the properties in CSS level
2.
All CSS objects in the DOM are "live", that is, a change in the style sheet is reflected in the computed and actual style.
2.2. CSS Fundamental Interfaces
The interfaces within this section are considered fundamental CSS interfaces, and must be supported by all conforming implementations of the CSS module. These interfaces represent CSS style sheets specifically.
A DOM application may use the hasFeature(feature,
version)
method of the DOMImplementation
interface with parameter values "CSS" and "2.0" (respectively) to
determine whether or not this module is supported by the
implementation. In order to fully support this module, an
implementation must also support the "Core" feature defined defined
in the DOM Level 2 Core specification [DOM Level 2 Core] and the
"Views" feature defined in the DOM Level 2 Views specification [DOM Level 2
Views]. Please refer to additional information about
conformance in the DOM Level 2 Core specification [DOM Level 2
Core].
-
Interface CSSStyleSheet (introduced in
DOM Level 2)
-
The
CSSStyleSheet
interface is a concrete interface used to represent a CSS style sheet i.e., a style sheet whose content type is "text/css".-
// Introduced in DOM Level 2: interface CSSStyleSheet : stylesheets::StyleSheet { readonly attribute CSSRule ownerRule; readonly attribute CSSRuleList cssRules; unsigned long insertRule(in DOMString rule, in unsigned long index) raises(DOMException); void deleteRule(in unsigned long index) raises(DOMException); };
Attributes
-
- The list of all CSS rules contained within the style sheet.
This includes both
rule sets and
at-rules.
- If this style sheet comes from an
@import
rule, theownerRule
attribute will contain theCSSImportRule
. In that case, theownerNode
attribute in theStyleSheet
interface will benull
. If the style sheet comes from an element or a processing instruction, theownerRule
attribute will benull
and theownerNode
attribute will contain theNode
.
cssRules
of typeCSSRuleList
, readonlyownerRule
of typeCSSRule
, readonly
Methods
- The list of all CSS rules contained within the style sheet.
This includes both
rule sets and
at-rules.
-
-
Used to delete a rule from the style sheet.
Parameters
- The index within the style sheet's rule list of the rule to
remove.
index
of typeunsigned long
Exceptions
DOMException
INDEX_SIZE_ERR: Raised if the specified index does not correspond to a rule in the style sheet's rule list.
NO_MODIFICATION_ALLOWED_ERR: Raised if this style sheet is readonly.
No Return Value
- The index within the style sheet's rule list of the rule to
remove.
-
Used to insert a new rule into the style sheet. The new rule now becomes part of the cascade.
Parameters
- The parsable text representing the rule. For rule sets this
contains both the selector and the style declaration. For at-rules,
this specifies both the at-identifier and the rule content.
- The index within the style sheet's rule list of the rule before
which to insert the specified rule. If the specified index is equal
to the length of the style sheet's rule collection, the rule will
be added to the end of the style sheet.
rule
of typeDOMString
index
of typeunsigned long
Return Value
unsigned long
The index within the style sheet's rule collection of the newly inserted rule.
Exceptions
DOMException
HIERARCHY_REQUEST_ERR: Raised if the rule cannot be inserted at the specified index e.g. if an
@import
rule is inserted after a standard rule set or other at-rule.INDEX_SIZE_ERR: Raised if the specified index is not a valid insertion point.
NO_MODIFICATION_ALLOWED_ERR: Raised if this style sheet is readonly.
SYNTAX_ERR: Raised if the specified rule has a syntax error and is unparsable.
- The parsable text representing the rule. For rule sets this
contains both the selector and the style declaration. For at-rules,
this specifies both the at-identifier and the rule content.
deleteRule
insertRule
-
IDL Definition
Interface CSSRuleList (introduced in DOM Level 2)
-
-
The
CSSRuleList
interface provides the abstraction of an ordered collection of CSS rules.The items in the
CSSRuleList
are accessible via an integral index, starting from 0.-
// Introduced in DOM Level 2: interface CSSRuleList { readonly attribute unsigned long length; CSSRule item(in unsigned long index); };
Attributes
- Methods
-
-
Used to retrieve a CSS rule by ordinal index. The order in this collection represents the order of the rules in the CSS style sheet. If index is greater than or equal to the number of rules in the list, this returns
null
.Parameters
- Index into the collection
index
of typeunsigned long
Return Value
The style rule at the
index
position in theCSSRuleList
, ornull
if that is not a valid index.No Exceptions
- Index into the collection
item
-
IDL Definition
Interface CSSRule (introduced in DOM Level 2)
-
-
The
CSSRule
interface is the abstract base interface for any type of CSS statement. This includes both rule sets and at-rules. An implementation is expected to preserve all rules specified in a CSS style sheet, even if the rule is not recognized by the parser. Unrecognized rules are represented using theCSSUnknownRule
interface.-
// Introduced in DOM Level 2: interface CSSRule { // RuleType const unsigned short UNKNOWN_RULE = 0; const unsigned short STYLE_RULE = 1; const unsigned short CHARSET_RULE = 2; const unsigned short IMPORT_RULE = 3; const unsigned short MEDIA_RULE = 4; const unsigned short FONT_FACE_RULE = 5; const unsigned short PAGE_RULE = 6; readonly attribute unsigned short type; attribute DOMString cssText; // raises(DOMException) on setting readonly attribute CSSStyleSheet parentStyleSheet; readonly attribute CSSRule parentRule; };
Definition group RuleType
-
An integer indicating which type of rule this is.
-
Defined Constants
-
- The rule is a
CSSCharsetRule
. - The rule is a
CSSFontFaceRule
. - The rule is a
CSSImportRule
. - The rule is a
CSSMediaRule
. - The rule is a
CSSPageRule
. - The rule is a
CSSStyleRule
. - The rule is a
CSSUnknownRule
.
CHARSET_RULE
FONT_FACE_RULE
IMPORT_RULE
MEDIA_RULE
PAGE_RULE
STYLE_RULE
UNKNOWN_RULE
- The rule is a
Attributes
-
-
- The parsable textual representation of the rule. This reflects
the current state of the rule and not its initial value.
Exceptions on setting
DOMException
SYNTAX_ERR: Raised if the specified CSS string value has a syntax error and is unparsable.
INVALID_MODIFICATION_ERR: Raised if the specified CSS string value represents a different type of rule than the current one.
HIERARCHY_REQUEST_ERR: Raised if the rule cannot be inserted at this point in the style sheet.
NO_MODIFICATION_ALLOWED_ERR: Raised if the rule is readonly.
- If this rule is contained inside another rule (e.g. a style
rule inside an @media block), this is the containing rule. If this
rule is not nested inside any other rules, this returns
null
.
- The style sheet that contains this rule.
- The type of the rule, as defined above. The expectation is that
binding-specific casting methods can be used to cast down from an
instance of the
CSSRule
interface to the specific derived interface implied by thetype
.
cssText
of typeDOMString
parentRule
of typeCSSRule
, readonlyparentStyleSheet
of typeCSSStyleSheet
, readonlytype
of typeunsigned short
, readonly - The parsable textual representation of the rule. This reflects
the current state of the rule and not its initial value.
IDL Definition
Interface CSSStyleRule (introduced in DOM Level 2)
-
-
The
CSSStyleRule
interface represents a single rule set in a CSS style sheet.-
// Introduced in DOM Level 2: interface CSSStyleRule : CSSRule { attribute DOMString selectorText; // raises(DOMException) on setting readonly attribute CSSStyleDeclaration style; };
Attributes
-
- The textual representation of the
selector for the rule set. The implementation may have
stripped out insignificant whitespace while parsing the
selector.
Exceptions on setting
DOMException
SYNTAX_ERR: Raised if the specified CSS string value has a syntax error and is unparsable.
NO_MODIFICATION_ALLOWED_ERR: Raised if this rule is readonly.
- The
declaration-block of this rule set.
selectorText
of typeDOMString
style
of typeCSSStyleDeclaration
, readonly - The textual representation of the
selector for the rule set. The implementation may have
stripped out insignificant whitespace while parsing the
selector.
IDL Definition
Interface CSSMediaRule (introduced in DOM Level 2)
-
-
The
CSSMediaRule
interface represents a @media rule in a CSS style sheet. A@media
rule can be used to delimit style rules for specific media types.-
// Introduced in DOM Level 2: interface CSSMediaRule : CSSRule { readonly attribute stylesheets::MediaList media; readonly attribute CSSRuleList cssRules; unsigned long insertRule(in DOMString rule, in unsigned long index) raises(DOMException); void deleteRule(in unsigned long index) raises(DOMException); };
Attributes
-
- A list of all CSS rules contained within the media block.
- A list of
media types for this rule.
cssRules
of typeCSSRuleList
, readonlymedia
of typestylesheets::MediaList
, readonly
Methods
- A list of all CSS rules contained within the media block.
-
-
Used to delete a rule from the media block.
Parameters
- The index within the media block's rule collection of the rule
to remove.
index
of typeunsigned long
Exceptions
DOMException
INDEX_SIZE_ERR: Raised if the specified index does not correspond to a rule in the media rule list.
NO_MODIFICATION_ALLOWED_ERR: Raised if this media rule is readonly.
No Return Value
- The index within the media block's rule collection of the rule
to remove.
-
Used to insert a new rule into the media block.
Parameters
- The parsable text representing the rule. For rule sets this
contains both the selector and the style declaration. For at-rules,
this specifies both the at-identifier and the rule content.
- The index within the media block's rule collection of the rule
before which to insert the specified rule. If the specified index
is equal to the length of the media blocks's rule collection, the
rule will be added to the end of the media block.
rule
of typeDOMString
index
of typeunsigned long
Return Value
unsigned long
The index within the media block's rule collection of the newly inserted rule.
Exceptions
DOMException
HIERARCHY_REQUEST_ERR: Raised if the rule cannot be inserted at the specified index, e.g., if an
@import
rule is inserted after a standard rule set or other at-rule.INDEX_SIZE_ERR: Raised if the specified index is not a valid insertion point.
NO_MODIFICATION_ALLOWED_ERR: Raised if this media rule is readonly.
SYNTAX_ERR: Raised if the specified rule has a syntax error and is unparsable.
- The parsable text representing the rule. For rule sets this
contains both the selector and the style declaration. For at-rules,
this specifies both the at-identifier and the rule content.
deleteRule
insertRule
-
IDL Definition
Interface CSSFontFaceRule (introduced
in DOM Level 2)
-
-
The
CSSFontFaceRule
interface represents a @font-face rule in a CSS style sheet. The@font-face
rule is used to hold a set of font descriptions.-
// Introduced in DOM Level 2: interface CSSFontFaceRule : CSSRule { readonly attribute CSSStyleDeclaration style; };
Attributes
-
- The
declaration-block of this rule.
style
of typeCSSStyleDeclaration
, readonly - The
declaration-block of this rule.
IDL Definition
Interface CSSPageRule (introduced in DOM Level 2)
-
-
The
CSSPageRule
interface represents a @page rule within a CSS style sheet. The@page
rule is used to specify the dimensions, orientation, margins, etc. of a page box for paged media.-
// Introduced in DOM Level 2: interface CSSPageRule : CSSRule { attribute DOMString selectorText; // raises(DOMException) on setting readonly attribute CSSStyleDeclaration style; };
Attributes
-
- The parsable textual representation of the page selector for
the rule.
Exceptions on setting
DOMException
SYNTAX_ERR: Raised if the specified CSS string value has a syntax error and is unparsable.
NO_MODIFICATION_ALLOWED_ERR: Raised if this rule is readonly.
- The
declaration-block of this rule.
selectorText
of typeDOMString
style
of typeCSSStyleDeclaration
, readonly - The parsable textual representation of the page selector for
the rule.
IDL Definition
Interface CSSImportRule (introduced in
DOM Level 2)
-
-
The
CSSImportRule
interface represents a @import rule within a CSS style sheet. The@import
rule is used to import style rules from other style sheets.-
// Introduced in DOM Level 2: interface CSSImportRule : CSSRule { readonly attribute DOMString href; readonly attribute stylesheets::MediaList media; readonly attribute CSSStyleSheet styleSheet; };
Attributes
-
- The location of the style sheet to be imported. The attribute
will not contain the
"url(...)"
specifier around the URI.
- A list of media types for which this style sheet may be
used.
- The style sheet referred to by this rule, if it has been
loaded. The value of this attribute is
null
if the style sheet has not yet been loaded or if it will not be loaded (e.g. if the style sheet is for a media type not supported by the user agent).
href
of typeDOMString
, readonlymedia
of typestylesheets::MediaList
, readonlystyleSheet
of typeCSSStyleSheet
, readonly - The location of the style sheet to be imported. The attribute
will not contain the
IDL Definition
Interface CSSCharsetRule (introduced in
DOM Level 2)
-
-
The
CSSCharsetRule
interface represents a @charset rule in a CSS style sheet. The value of theencoding
attribute does not affect the encoding of text data in the DOM objects; this encoding is always UTF-16. After a stylesheet is loaded, the value of theencoding
attribute is the value found in the@charset
rule. If there was no@charset
in the original document, then noCSSCharsetRule
is created. The value of theencoding
attribute may also be used as a hint for the encoding used on serialization of the style sheet.The value of the @charset rule (and therefore of the
CSSCharsetRule
) may not correspond to the encoding the document actually came in; character encoding information e.g. in an HTTP header, has priority (see CSS document representation) but this is not reflected in theCSSCharsetRule
.-
// Introduced in DOM Level 2: interface CSSCharsetRule : CSSRule { attribute DOMString encoding; // raises(DOMException) on setting };
Attributes
-
- The encoding information used in this
@charset
rule.
Exceptions on setting
DOMException
SYNTAX_ERR: Raised if the specified encoding value has a syntax error and is unparsable.
NO_MODIFICATION_ALLOWED_ERR: Raised if this encoding rule is readonly.
encoding
of typeDOMString
- The encoding information used in this
IDL Definition
Interface CSSUnknownRule (introduced in
DOM Level 2)
-
-
The
CSSUnknownRule
interface represents an at-rule not supported by this user agent.-
// Introduced in DOM Level 2: interface CSSUnknownRule : CSSRule { };
IDL Definition
Interface CSSStyleDeclaration
(introduced in DOM Level 2)
-
-
The
CSSStyleDeclaration
interface represents a single CSS declaration block. This interface may be used to determine the style properties currently set in a block or to set style properties explicitly within the block.While an implementation may not recognize all CSS properties within a CSS declaration block, it is expected to provide access to all specified properties in the style sheet through the
CSSStyleDeclaration
interface. Furthermore, implementations that support a specific level of CSS should correctly handle CSS shorthand properties for that level. For a further discussion of shorthand properties, see theCSS2Properties
interface.This interface is also used to provide a read-only access to the computed values of an element. See also the
ViewCSS
interface.Note: The CSS Object Model doesn't provide an access to the specified or actual values of the CSS cascade.
-
// Introduced in DOM Level 2: interface CSSStyleDeclaration { attribute DOMString cssText; // raises(DOMException) on setting DOMString getPropertyValue(in DOMString propertyName); CSSValue getPropertyCSSValue(in DOMString propertyName); DOMString removeProperty(in DOMString propertyName) raises(DOMException); DOMString getPropertyPriority(in DOMString propertyName); void setProperty(in DOMString propertyName, in DOMString value, in DOMString priority) raises(DOMException); readonly attribute unsigned long length; DOMString item(in unsigned long index); readonly attribute CSSRule parentRule; };
Attributes
-
- The parsable textual representation of the declaration block
(excluding the surrounding curly braces). Setting this attribute
will result in the parsing of the new value and resetting of all
the properties in the declaration block including the removal or
addition of properties.
Exceptions on setting
DOMException
SYNTAX_ERR: Raised if the specified CSS string value has a syntax error and is unparsable.
NO_MODIFICATION_ALLOWED_ERR: Raised if this declaration is readonly or a property is readonly.
- The number of properties that have been explicitly set in this
declaration block. The range of valid indices is 0 to length-1
inclusive.
- The CSS rule that contains this declaration block or
null
if thisCSSStyleDeclaration
is not attached to aCSSRule
.
cssText
of typeDOMString
length
of typeunsigned long
, readonlyparentRule
of typeCSSRule
, readonly
Methods
- The parsable textual representation of the declaration block
(excluding the surrounding curly braces). Setting this attribute
will result in the parsing of the new value and resetting of all
the properties in the declaration block including the removal or
addition of properties.
-
-
Used to retrieve the object representation of the value of a CSS property if it has been explicitly set within this declaration block. This method returns
null
if the property is a shorthand property. Shorthand property values can only be accessed and modified as strings, using thegetPropertyValue
andsetProperty
methods.Return Value
Returns the value of the property if it has been explicitly set for this declaration block. Returns
null
if the property has not been set.No Exceptions
-
Used to retrieve the priority of a CSS property (e.g. the
"important"
qualifier) if the property has been explicitly set in this declaration block.Return Value
DOMString
A string representing the priority (e.g.
"important"
) if one exists. The empty string if none exists.No Exceptions
-
Used to retrieve the value of a CSS property if it has been explicitly set within this declaration block.
Return Value
DOMString
Returns the value of the property if it has been explicitly set for this declaration block. Returns the empty string if the property has not been set.
No Exceptions
-
Used to retrieve the properties that have been explicitly set in this declaration block. The order of the properties retrieved using this method does not have to be the order in which they were set. This method can be used to iterate over all properties in this declaration block.
Parameters
- Index of the property name to retrieve.
index
of typeunsigned long
Return Value
DOMString
The name of the property at this ordinal position. The empty string if no property exists at this position.
No Exceptions
- Index of the property name to retrieve.
-
Used to remove a CSS property if it has been explicitly set within this declaration block.
Return Value
DOMString
Returns the value of the property if it has been explicitly set for this declaration block. Returns the empty string if the property has not been set or the property name does not correspond to a known CSS property.
Exceptions
DOMException
NO_MODIFICATION_ALLOWED_ERR: Raised if this declaration is readonly or the property is readonly.
-
Used to set a property value and priority within this declaration block.
Parameters
- The name of the CSS property. See the
CSS property index.
- The new value of the property.
- The new priority of the property (e.g.
"important"
).
propertyName
of typeDOMString
value
of typeDOMString
priority
of typeDOMString
Exceptions
DOMException
SYNTAX_ERR: Raised if the specified value has a syntax error and is unparsable.
NO_MODIFICATION_ALLOWED_ERR: Raised if this declaration is readonly or the property is readonly.
No Return Value
- The name of the CSS property. See the
CSS property index.
getPropertyCSSValue
getPropertyPriority
getPropertyValue
item
removeProperty
setProperty
-
IDL Definition
Interface CSSValue (introduced in DOM Level 2)
-
-
The
CSSValue
interface represents a simple or a complex value. ACSSValue
object only occurs in a context of a CSS property.-
// Introduced in DOM Level 2: interface CSSValue { // UnitTypes const unsigned short CSS_INHERIT = 0; const unsigned short CSS_PRIMITIVE_VALUE = 1; const unsigned short CSS_VALUE_LIST = 2; const unsigned short CSS_CUSTOM = 3; attribute DOMString cssText; // raises(DOMException) on setting readonly attribute unsigned short cssValueType; };
Definition group UnitTypes
-
An integer indicating which type of unit applies to the value.
-
Defined Constants
-
- The value is a custom value.
- The value is inherited and the
cssText
contains "inherit". - The value is a primitive value and an instance of the
CSSPrimitiveValue
interface can be obtained by using binding-specific casting methods on this instance of theCSSValue
interface. - The value is a
CSSValue
list and an instance of theCSSValueList
interface can be obtained by using binding-specific casting methods on this instance of theCSSValue
interface.
CSS_CUSTOM
CSS_INHERIT
CSS_PRIMITIVE_VALUE
CSS_VALUE_LIST
Attributes
-
-
- A string representation of the current value.
Exceptions on setting
DOMException
SYNTAX_ERR: Raised if the specified CSS string value has a syntax error (according to the attached property) or is unparsable.
INVALID_MODIFICATION_ERR: Raised if the specified CSS string value represents a different type of values than the values allowed by the CSS property.
NO_MODIFICATION_ALLOWED_ERR: Raised if this value is readonly.
- A code defining the type of the value as defined above.
cssText
of typeDOMString
cssValueType
of typeunsigned short
, readonly - A string representation of the current value.
IDL Definition
Interface CSSPrimitiveValue
(introduced in DOM Level 2)
-
-
The
CSSPrimitiveValue
interface represents a single CSS value. This interface may be used to determine the value of a specific style property currently set in a block or to set a specific style property explicitly within the block. An instance of this interface might be obtained from thegetPropertyCSSValue
method of theCSSStyleDeclaration
interface. ACSSPrimitiveValue
object only occurs in a context of a CSS property.Conversions are allowed between absolute values (from millimeters to centimeters, from degrees to radians, and so on) but not between relative values. (For example, a pixel value cannot be converted to a centimeter value.) Percentage values can't be converted since they are relative to the parent value (or another property value). There is one exception for color percentage values: since a color percentage value is relative to the range 0-255, a color percentage value can be converted to a number; (see also the
RGBColor
interface).-
// Introduced in DOM Level 2: interface CSSPrimitiveValue : CSSValue { // UnitTypes const unsigned short CSS_UNKNOWN = 0; const unsigned short CSS_NUMBER = 1; const unsigned short CSS_PERCENTAGE = 2; const unsigned short CSS_EMS = 3; const unsigned short CSS_EXS = 4; const unsigned short CSS_PX = 5; const unsigned short CSS_CM = 6; const unsigned short CSS_MM = 7; const unsigned short CSS_IN = 8; const unsigned short CSS_PT = 9; const unsigned short CSS_PC = 10; const unsigned short CSS_DEG = 11; const unsigned short CSS_RAD = 12; const unsigned short CSS_GRAD = 13; const unsigned short CSS_MS = 14; const unsigned short CSS_S = 15; const unsigned short CSS_HZ = 16; const unsigned short CSS_KHZ = 17; const unsigned short CSS_DIMENSION = 18; const unsigned short CSS_STRING = 19; const unsigned short CSS_URI = 20; const unsigned short CSS_IDENT = 21; const unsigned short CSS_ATTR = 22; const unsigned short CSS_COUNTER = 23; const unsigned short CSS_RECT = 24; const unsigned short CSS_RGBCOLOR = 25; readonly attribute unsigned short primitiveType; void setFloatValue(in unsigned short unitType, in float floatValue) raises(DOMException); float getFloatValue(in unsigned short unitType) raises(DOMException); void setStringValue(in unsigned short stringType, in DOMString stringValue) raises(DOMException); DOMString getStringValue() raises(DOMException); Counter getCounterValue() raises(DOMException); Rect getRectValue() raises(DOMException); RGBColor getRGBColorValue() raises(DOMException); };
Definition group UnitTypes
-
An integer indicating which type of unit applies to the value.
-
Defined Constants
-
- The value is a
attribute function. The value can be obtained by using
the
getStringValue
method. - The value is a
length (cm). The value can be obtained by using the
getFloatValue
method. - The value is a
counter or counters function. The value can be
obtained by using the
getCounterValue
method. - The value is an
angle (deg). The value can be obtained by using the
getFloatValue
method. - The value is a number with an unknown dimension. The value can
be obtained by using the
getFloatValue
method. - The value is a
length (ems). The value can be obtained by using the
getFloatValue
method. - The value is a
length (exs). The value can be obtained by using the
getFloatValue
method. - The value is an
angle (grad). The value can be obtained by using the
getFloatValue
method. - The value is a
frequency (Hz). The value can be obtained by using the
getFloatValue
method. - The value is an
identifier. The value can be obtained by using the
getStringValue
method. - The value is a
length (in). The value can be obtained by using the
getFloatValue
method. - The value is a
frequency (kHz). The value can be obtained by using
the
getFloatValue
method. - The value is a
length (mm). The value can be obtained by using the
getFloatValue
method. - The value is a
time (ms). The value can be obtained by using the
getFloatValue
method. - The value is a simple
number. The value can be obtained by using the
getFloatValue
method. - The value is a
length (pc). The value can be obtained by using the
getFloatValue
method. - The value is a
percentage. The value can be obtained by using the
getFloatValue
method. - The value is a
length (pt). The value can be obtained by using the
getFloatValue
method. - The value is a
length (px). The value can be obtained by using the
getFloatValue
method. - The value is an
angle (rad). The value can be obtained by using the
getFloatValue
method. - The value is a
rect function. The value can be obtained by using the
getRectValue
method. - The value is a
RGB color. The value can be obtained by using the
getRGBColorValue
method. - The value is a
time (s). The value can be obtained by using the
getFloatValue
method. - The value is a
STRING. The value can be obtained by using the
getStringValue
method. - The value is not a recognized CSS2 value. The value can only be
obtained by using the
cssText
attribute. - The value is a
URI. The value can be obtained by using the
getStringValue
method.
CSS_ATTR
CSS_CM
CSS_COUNTER
CSS_DEG
CSS_DIMENSION
CSS_EMS
CSS_EXS
CSS_GRAD
CSS_HZ
CSS_IDENT
CSS_IN
CSS_KHZ
CSS_MM
CSS_MS
CSS_NUMBER
CSS_PC
CSS_PERCENTAGE
CSS_PT
CSS_PX
CSS_RAD
CSS_RECT
CSS_RGBCOLOR
CSS_S
CSS_STRING
CSS_UNKNOWN
CSS_URI
- The value is a
attribute function. The value can be obtained by using
the
Attributes
-
-
- The type of the value as defined by the constants specified
above.
primitiveType
of typeunsigned short
, readonly
Methods
- The type of the value as defined by the constants specified
above.
-
-
This method is used to get the Counter value. If this CSS value doesn't contain a counter value, a
DOMException
is raised. Modification to the corresponding style property can be achieved using theCounter
interface.Exceptions
DOMException
INVALID_ACCESS_ERR: Raised if the CSS value doesn't contain a Counter value (e.g. this is not
CSS_COUNTER
).No Parameters
-
This method is used to get a float value in a specified unit. If this CSS value doesn't contain a float value or can't be converted into the specified unit, a
DOMException
is raised.Parameters
- A unit code to get the float value. The unit code can only be a
float unit type (i.e.
CSS_NUMBER
,CSS_PERCENTAGE
,CSS_EMS
,CSS_EXS
,CSS_PX
,CSS_CM
,CSS_MM
,CSS_IN
,CSS_PT
,CSS_PC
,CSS_DEG
,CSS_RAD
,CSS_GRAD
,CSS_MS
,CSS_S
,CSS_HZ
,CSS_KHZ
,CSS_DIMENSION
).
unitType
of typeunsigned short
Return Value
float
The float value in the specified unit.
Exceptions
DOMException
INVALID_ACCESS_ERR: Raised if the CSS value doesn't contain a float value or if the float value can't be converted into the specified unit.
- A unit code to get the float value. The unit code can only be a
float unit type (i.e.
-
This method is used to get the RGB color. If this CSS value doesn't contain a RGB color value, a
DOMException
is raised. Modification to the corresponding style property can be achieved using theRGBColor
interface.Exceptions
DOMException
INVALID_ACCESS_ERR: Raised if the attached property can't return a RGB color value (e.g. this is not
CSS_RGBCOLOR
).No Parameters
-
This method is used to get the Rect value. If this CSS value doesn't contain a rect value, a
DOMException
is raised. Modification to the corresponding style property can be achieved using theRect
interface.Exceptions
DOMException
INVALID_ACCESS_ERR: Raised if the CSS value doesn't contain a Rect value. (e.g. this is not
CSS_RECT
).No Parameters
-
This method is used to get the string value. If the CSS value doesn't contain a string value, a
DOMException
is raised.Note: Some properties (like 'font-family' or 'voice-family') convert a whitespace separated list of idents to a string.
Return Value
DOMString
The string value in the current unit. The current
primitiveType
can only be a string unit type (i.e.CSS_STRING
,CSS_URI
,CSS_IDENT
andCSS_ATTR
).Exceptions
DOMException
INVALID_ACCESS_ERR: Raised if the CSS value doesn't contain a string value.
No Parameters
-
A method to set the float value with a specified unit. If the property attached with this value can not accept the specified unit or the float value, the value will be unchanged and a
DOMException
will be raised.Parameters
- A unit code as defined above. The unit code can only be a float
unit type (i.e.
CSS_NUMBER
,CSS_PERCENTAGE
,CSS_EMS
,CSS_EXS
,CSS_PX
,CSS_CM
,CSS_MM
,CSS_IN
,CSS_PT
,CSS_PC
,CSS_DEG
,CSS_RAD
,CSS_GRAD
,CSS_MS
,CSS_S
,CSS_HZ
,CSS_KHZ
,CSS_DIMENSION
).
- The new float value.
unitType
of typeunsigned short
floatValue
of typefloat
Exceptions
DOMException
INVALID_ACCESS_ERR: Raised if the attached property doesn't support the float value or the unit type.
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly.
No Return Value
- A unit code as defined above. The unit code can only be a float
unit type (i.e.
-
A method to set the string value with the specified unit. If the property attached to this value can't accept the specified unit or the string value, the value will be unchanged and a
DOMException
will be raised.Parameters
- A string code as defined above. The string code can only be a
string unit type (i.e.
CSS_STRING
,CSS_URI
,CSS_IDENT
, andCSS_ATTR
).
- The new string value.
stringType
of typeunsigned short
stringValue
of typeDOMString
Exceptions
DOMException
INVALID_ACCESS_ERR: Raised if the CSS value doesn't contain a string value or if the string value can't be converted into the specified unit.
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly.
No Return Value
- A string code as defined above. The string code can only be a
string unit type (i.e.
getCounterValue
getFloatValue
getRGBColorValue
getRectValue
getStringValue
setFloatValue
setStringValue
-
IDL Definition
Interface CSSValueList (introduced in DOM Level 2)
-
-
The
CSSValueList
interface provides the abstraction of an ordered collection of CSS values.Some properties allow an empty list into their syntax. In that case, these properties take the
none
identifier. So, an empty list means that the property has the valuenone
.The items in the
CSSValueList
are accessible via an integral index, starting from 0.-
// Introduced in DOM Level 2: interface CSSValueList : CSSValue { readonly attribute unsigned long length; CSSValue item(in unsigned long index); };
Attributes
- Methods
-
-
Used to retrieve a
CSSValue
by ordinal index. The order in this collection represents the order of the values in the CSS style property. If index is greater than or equal to the number of values in the list, this returnsnull
.Parameters
- Index into the collection.
index
of typeunsigned long
Return Value
No Exceptions
- Index into the collection.
item
-
IDL Definition
Interface RGBColor (introduced in DOM Level 2)
-
-
The
RGBColor
interface is used to represent any RGB color value. This interface reflects the values in the underlying style property. Hence, modifications made to theCSSPrimitiveValue
objects modify the style property.A specified RGB color is not clipped (even if the number is outside the range 0-255 or 0%-100%). A computed RGB color is clipped depending on the device.
Even if a style sheet can only contain an integer for a color value, the internal storage of this integer is a float, and this can be used as a float in the specified or the computed style.
A color percentage value can always be converted to a number and vice versa.
-
// Introduced in DOM Level 2: interface RGBColor { readonly attribute CSSPrimitiveValue red; readonly attribute CSSPrimitiveValue green; readonly attribute CSSPrimitiveValue blue; };
Attributes
-
- This attribute is used for the blue value of the RGB
color.
- This attribute is used for the green value of the RGB
color.
- This attribute is used for the red value of the RGB
color.
blue
of typeCSSPrimitiveValue
, readonlygreen
of typeCSSPrimitiveValue
, readonlyred
of typeCSSPrimitiveValue
, readonly - This attribute is used for the blue value of the RGB
color.
IDL Definition
Interface Rect (introduced in DOM Level 2)
-
-
The
Rect
interface is used to represent any rect value. This interface reflects the values in the underlying style property. Hence, modifications made to theCSSPrimitiveValue
objects modify the style property.-
// Introduced in DOM Level 2: interface Rect { readonly attribute CSSPrimitiveValue top; readonly attribute CSSPrimitiveValue right; readonly attribute CSSPrimitiveValue bottom; readonly attribute CSSPrimitiveValue left; };
Attributes
-
- This attribute is used for the bottom of the rect.
- This attribute is used for the left of the rect.
- This attribute is used for the right of the rect.
- This attribute is used for the top of the rect.
bottom
of typeCSSPrimitiveValue
, readonlyleft
of typeCSSPrimitiveValue
, readonlyright
of typeCSSPrimitiveValue
, readonlytop
of typeCSSPrimitiveValue
, readonly - This attribute is used for the bottom of the rect.
IDL Definition
Interface Counter (introduced in DOM Level 2)
-
-
The
Counter
interface is used to represent any counter or counters function value. This interface reflects the values in the underlying style property.-
// Introduced in DOM Level 2: interface Counter { readonly attribute DOMString identifier; readonly attribute DOMString listStyle; readonly attribute DOMString separator; };
Attributes
-
- This attribute is used for the identifier of the counter.
- This attribute is used for the style of the list.
- This attribute is used for the separator of the nested
counters.
identifier
of typeDOMString
, readonlylistStyle
of typeDOMString
, readonlyseparator
of typeDOMString
, readonly - This attribute is used for the identifier of the counter.
IDL Definition -
2.2.1. Override and computed style sheet
-
Interface ViewCSS (introduced in DOM Level 2)
-
This interface represents a CSS view. The
getComputedStyle
method provides a read only access to the computed values of an element.The expectation is that an instance of the
ViewCSS
interface can be obtained by using binding-specific casting methods on an instance of theAbstractView
interface.Since a computed style is related to an
Element
node, if this element is removed from the document, the associatedCSSStyleDeclaration
andCSSValue
related to this declaration are no longer valid.-
// Introduced in DOM Level 2: interface ViewCSS : views::AbstractView { CSSStyleDeclaration getComputedStyle(in Element elt, in DOMString pseudoElt); };
Methods
-
-
This method is used to get the computed style as it is defined in [CSS2].
Parameters
- The element whose style is to be computed. This parameter
cannot be null.
- The pseudo-element or
null
if none.
elt
of typeElement
pseudoElt
of typeDOMString
No Exceptions
- The element whose style is to be computed. This parameter
cannot be null.
getComputedStyle
-
IDL Definition
Interface DocumentCSS (introduced in DOM Level 2)
-
-
This interface represents a document with a CSS view.
The
getOverrideStyle
method provides a mechanism through which a DOM author could effect immediate change to the style of an element without modifying the explicitly linked style sheets of a document or the inline style of elements in the style sheets. This style sheet comes after the author style sheet in the cascade algorithm and is called override style sheet. The override style sheet takes precedence over author style sheets. An "!important" declaration still takes precedence over a normal declaration. Override, author, and user style sheets all may contain "!important" declarations. User "!important" rules take precedence over both override and author "!important" rules, and override "!important" rules take precedence over author "!important" rules.The expectation is that an instance of the
DocumentCSS
interface can be obtained by using binding-specific casting methods on an instance of theDocument
interface.-
// Introduced in DOM Level 2: interface DocumentCSS : stylesheets::DocumentStyle { CSSStyleDeclaration getOverrideStyle(in Element elt, in DOMString pseudoElt); };
Methods
-
-
This method is used to retrieve the override style declaration for a specified element and a specified pseudo-element.
Parameters
- The element whose style is to be modified. This parameter
cannot be null.
- The pseudo-element or
null
if none.
elt
of typeElement
pseudoElt
of typeDOMString
No Exceptions
- The element whose style is to be modified. This parameter
cannot be null.
getOverrideStyle
-
IDL Definition -
2.2.2. Style sheet creation
-
Interface DOMImplementationCSS
(introduced in DOM Level 2)
-
This interface allows the DOM user to create a
CSSStyleSheet
outside the context of a document. There is no way to associate the newCSSStyleSheet
with a document in DOM Level 2.-
// Introduced in DOM Level 2: interface DOMImplementationCSS : DOMImplementation { CSSStyleSheet createCSSStyleSheet(in DOMString title, in DOMString media) raises(DOMException); };
Methods
-
-
Creates a new
CSSStyleSheet
.Parameters
- The advisory title. See also the Style Sheet
Interfaces section.
- The comma-separated list of media associated with the new style
sheet. See also the Style Sheet
Interfaces section.
title
of typeDOMString
media
of typeDOMString
Exceptions
DOMException
SYNTAX_ERR: Raised if the specified media string value has a syntax error and is unparsable.
- The advisory title. See also the Style Sheet
Interfaces section.
createCSSStyleSheet
-
IDL Definition -
2.2.3. Element with CSS inline style
-
Interface ElementCSSInlineStyle
(introduced in DOM Level 2)
-
Inline style information attached to elements is exposed through the
style
attribute. This represents the contents of the STYLE attribute for HTML elements (or elements in other schemas or DTDs which use the STYLE attribute in the same way). The expectation is that an instance of the ElementCSSInlineStyle interface can be obtained by using binding-specific casting methods on an instance of the Element interface when the element supports inline CSS style informations.-
// Introduced in DOM Level 2: interface ElementCSSInlineStyle { readonly attribute CSSStyleDeclaration style; };
Attributes
-
- The style attribute.
style
of typeCSSStyleDeclaration
, readonly - The style attribute.
IDL Definition -
2.3. CSS2 Extended Interface
The interface found within this section are not mandatory. A DOM
application may use the hasFeature(feature, version)
method of the DOMImplementation
interface with
parameter values "CSS2" and "2.0" (respectively) to determine
whether or not this module is supported by the implementation. In
order to fully support this module, an implementation must also
support the "CSS" feature defined defined in CSS Fundamental Interfaces.
Please refer to additional information about
conformance in the DOM Level 2 Core specification [DOM Level 2
Core].
-
Interface CSS2Properties (introduced in
DOM Level 2)
-
The
CSS2Properties
interface represents a convenience mechanism for retrieving and setting properties within aCSSStyleDeclaration
. The attributes of this interface correspond to all the properties specified in CSS2. Getting an attribute of this interface is equivalent to calling thegetPropertyValue
method of theCSSStyleDeclaration
interface. Setting an attribute of this interface is equivalent to calling thesetProperty
method of theCSSStyleDeclaration
interface.A conformant implementation of the CSS module is not required to implement the
CSS2Properties
interface. If an implementation does implement this interface, the expectation is that language-specific methods can be used to cast from an instance of theCSSStyleDeclaration
interface to theCSS2Properties
interface.If an implementation does implement this interface, it is expected to understand the specific syntax of the shorthand properties, and apply their semantics; when the
margin
property is set, for example, themarginTop
,marginRight
,marginBottom
andmarginLeft
properties are actually being set by the underlying implementation.When dealing with CSS "shorthand" properties, the shorthand properties should be decomposed into their component longhand properties as appropriate, and when querying for their value, the form returned should be the shortest form exactly equivalent to the declarations made in the ruleset. However, if there is no shorthand declaration that could be added to the ruleset without changing in any way the rules already declared in the ruleset (i.e., by adding longhand rules that were previously not declared in the ruleset), then the empty string should be returned for the shorthand property.
For example, querying for the
font
property should not return "normal normal normal 14pt/normal Arial, sans-serif", when "14pt Arial, sans-serif" suffices. (The normals are initial values, and are implied by use of the longhand property.)If the values for all the longhand properties that compose a particular string are the initial values, then a string consisting of all the initial values should be returned (e.g. a
border-width
value of "medium" should be returned as such, not as "").For some shorthand properties that take missing values from other sides, such as the
margin
,padding
, andborder-[width|style|color]
properties, the minimum number of sides possible should be used; i.e., "0px 10px" will be returned instead of "0px 10px 0px 10px".If the value of a shorthand property can not be decomposed into its component longhand properties, as is the case for the
font
property with a value of "menu", querying for the values of the component longhand properties should return the empty string.-
// Introduced in DOM Level 2: interface CSS2Properties { attribute DOMString azimuth; // raises(DOMException) on setting attribute DOMString background; // raises(DOMException) on setting attribute DOMString backgroundAttachment; // raises(DOMException) on setting attribute DOMString backgroundColor; // raises(DOMException) on setting attribute DOMString backgroundImage; // raises(DOMException) on setting attribute DOMString backgroundPosition; // raises(DOMException) on setting attribute DOMString backgroundRepeat; // raises(DOMException) on setting attribute DOMString border; // raises(DOMException) on setting attribute DOMString borderCollapse; // raises(DOMException) on setting attribute DOMString borderColor; // raises(DOMException) on setting attribute DOMString borderSpacing; // raises(DOMException) on setting attribute DOMString borderStyle; // raises(DOMException) on setting attribute DOMString borderTop; // raises(DOMException) on setting attribute DOMString borderRight; // raises(DOMException) on setting attribute DOMString borderBottom; // raises(DOMException) on setting attribute DOMString borderLeft; // raises(DOMException) on setting attribute DOMString borderTopColor; // raises(DOMException) on setting attribute DOMString borderRightColor; // raises(DOMException) on setting attribute DOMString borderBottomColor; // raises(DOMException) on setting attribute DOMString borderLeftColor; // raises(DOMException) on setting attribute DOMString borderTopStyle; // raises(DOMException) on setting attribute DOMString borderRightStyle; // raises(DOMException) on setting attribute DOMString borderBottomStyle; // raises(DOMException) on setting attribute DOMString borderLeftStyle; // raises(DOMException) on setting attribute DOMString borderTopWidth; // raises(DOMException) on setting attribute DOMString borderRightWidth; // raises(DOMException) on setting attribute DOMString borderBottomWidth; // raises(DOMException) on setting attribute DOMString borderLeftWidth; // raises(DOMException) on setting attribute DOMString borderWidth; // raises(DOMException) on setting attribute DOMString bottom; // raises(DOMException) on setting attribute DOMString captionSide; // raises(DOMException) on setting attribute DOMString clear; // raises(DOMException) on setting attribute DOMString clip; // raises(DOMException) on setting attribute DOMString color; // raises(DOMException) on setting attribute DOMString content; // raises(DOMException) on setting attribute DOMString counterIncrement; // raises(DOMException) on setting attribute DOMString counterReset; // raises(DOMException) on setting attribute DOMString cue; // raises(DOMException) on setting attribute DOMString cueAfter; // raises(DOMException) on setting attribute DOMString cueBefore; // raises(DOMException) on setting attribute DOMString cursor; // raises(DOMException) on setting attribute DOMString direction; // raises(DOMException) on setting attribute DOMString display; // raises(DOMException) on setting attribute DOMString elevation; // raises(DOMException) on setting attribute DOMString emptyCells; // raises(DOMException) on setting attribute DOMString cssFloat; // raises(DOMException) on setting attribute DOMString font; // raises(DOMException) on setting attribute DOMString fontFamily; // raises(DOMException) on setting attribute DOMString fontSize; // raises(DOMException) on setting attribute DOMString fontSizeAdjust; // raises(DOMException) on setting attribute DOMString fontStretch; // raises(DOMException) on setting attribute DOMString fontStyle; // raises(DOMException) on setting attribute DOMString fontVariant; // raises(DOMException) on setting attribute DOMString fontWeight; // raises(DOMException) on setting attribute DOMString height; // raises(DOMException) on setting attribute DOMString left; // raises(DOMException) on setting attribute DOMString letterSpacing; // raises(DOMException) on setting attribute DOMString lineHeight; // raises(DOMException) on setting attribute DOMString listStyle; // raises(DOMException) on setting attribute DOMString listStyleImage; // raises(DOMException) on setting attribute DOMString listStylePosition; // raises(DOMException) on setting attribute DOMString listStyleType; // raises(DOMException) on setting attribute DOMString margin; // raises(DOMException) on setting attribute DOMString marginTop; // raises(DOMException) on setting attribute DOMString marginRight; // raises(DOMException) on setting attribute DOMString marginBottom; // raises(DOMException) on setting attribute DOMString marginLeft; // raises(DOMException) on setting attribute DOMString markerOffset; // raises(DOMException) on setting attribute DOMString marks; // raises(DOMException) on setting attribute DOMString maxHeight; // raises(DOMException) on setting attribute DOMString maxWidth; // raises(DOMException) on setting attribute DOMString minHeight; // raises(DOMException) on setting attribute DOMString minWidth; // raises(DOMException) on setting attribute DOMString orphans; // raises(DOMException) on setting attribute DOMString outline; // raises(DOMException) on setting attribute DOMString outlineColor; // raises(DOMException) on setting attribute DOMString outlineStyle; // raises(DOMException) on setting attribute DOMString outlineWidth; // raises(DOMException) on setting attribute DOMString overflow; // raises(DOMException) on setting attribute DOMString padding; // raises(DOMException) on setting attribute DOMString paddingTop; // raises(DOMException) on setting attribute DOMString paddingRight; // raises(DOMException) on setting attribute DOMString paddingBottom; // raises(DOMException) on setting attribute DOMString paddingLeft; // raises(DOMException) on setting attribute DOMString page; // raises(DOMException) on setting attribute DOMString pageBreakAfter; // raises(DOMException) on setting attribute DOMString pageBreakBefore; // raises(DOMException) on setting attribute DOMString pageBreakInside; // raises(DOMException) on setting attribute DOMString pause; // raises(DOMException) on setting attribute DOMString pauseAfter; // raises(DOMException) on setting attribute DOMString pauseBefore; // raises(DOMException) on setting attribute DOMString pitch; // raises(DOMException) on setting attribute DOMString pitchRange; // raises(DOMException) on setting attribute DOMString playDuring; // raises(DOMException) on setting attribute DOMString position; // raises(DOMException) on setting attribute DOMString quotes; // raises(DOMException) on setting attribute DOMString richness; // raises(DOMException) on setting attribute DOMString right; // raises(DOMException) on setting attribute DOMString size; // raises(DOMException) on setting attribute DOMString speak; // raises(DOMException) on setting attribute DOMString speakHeader; // raises(DOMException) on setting attribute DOMString speakNumeral; // raises(DOMException) on setting attribute DOMString speakPunctuation; // raises(DOMException) on setting attribute DOMString speechRate; // raises(DOMException) on setting attribute DOMString stress; // raises(DOMException) on setting attribute DOMString tableLayout; // raises(DOMException) on setting attribute DOMString textAlign; // raises(DOMException) on setting attribute DOMString textDecoration; // raises(DOMException) on setting attribute DOMString textIndent; // raises(DOMException) on setting attribute DOMString textShadow; // raises(DOMException) on setting attribute DOMString textTransform; // raises(DOMException) on setting attribute DOMString top; // raises(DOMException) on setting attribute DOMString unicodeBidi; // raises(DOMException) on setting attribute DOMString verticalAlign; // raises(DOMException) on setting attribute DOMString visibility; // raises(DOMException) on setting attribute DOMString voiceFamily; // raises(DOMException) on setting attribute DOMString volume; // raises(DOMException) on setting attribute DOMString whiteSpace; // raises(DOMException) on setting attribute DOMString widows; // raises(DOMException) on setting attribute DOMString width; // raises(DOMException) on setting attribute DOMString wordSpacing; // raises(DOMException) on setting attribute DOMString zIndex; // raises(DOMException) on setting };
Attributes
-
- See the
azimuth property definition in CSS2.
Exceptions on setting
DOMException
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable.
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly.
- See the
background property definition in CSS2.
Exceptions on setting
DOMException
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable.
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly.
- See the
background-attachment property definition in
CSS2.
Exceptions on setting
DOMException
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable.
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly.
- See the
background-color property definition in CSS2.
Exceptions on setting
DOMException
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable.
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly.
- See the
background-image property definition in CSS2.
Exceptions on setting
DOMException
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable.
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly.
- See the
background-position property definition in CSS2.
Exceptions on setting
DOMException
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable.
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly.
- See the
background-repeat property definition in CSS2.
Exceptions on setting
DOMException
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable.
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly.
- See the
border property definition in CSS2.
Exceptions on setting
DOMException
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable.
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly.
- See the
border-bottom property definition in CSS2.
Exceptions on setting
DOMException
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable.
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly.
- See the
border-bottom-color property definition in CSS2.
Exceptions on setting
DOMException
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable.
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly.
- See the
border-bottom-style property definition in CSS2.
Exceptions on setting
DOMException
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable.
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly.
- See the
border-bottom-width property definition in CSS2.
Exceptions on setting
DOMException
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable.
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly.
- See the
border-collapse property definition in CSS2.
Exceptions on setting
DOMException
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable.
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly.
- See the
border-color property definition in CSS2.
Exceptions on setting
DOMException
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable.
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly.
- See the
border-left property definition in CSS2.
Exceptions on setting
DOMException
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable.
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly.
- See the
border-left-color property definition in CSS2.
Exceptions on setting
DOMException
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable.
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly.
- See the
border-left-style property definition in CSS2.
Exceptions on setting
DOMException
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable.
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly.
- See the
border-left-width property definition in CSS2.
Exceptions on setting
DOMException
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable.
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly.
- See the
border-right property definition in CSS2.
Exceptions on setting
DOMException
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable.
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly.
- See the
border-right-color property definition in CSS2.
Exceptions on setting
DOMException
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable.
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly.
- See the
border-right-style property definition in CSS2.
Exceptions on setting
DOMException
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable.
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly.
- See the
border-right-width property definition in CSS2.
Exceptions on setting
DOMException
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable.
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly.
- See the
border-spacing property definition in CSS2.
Exceptions on setting
DOMException
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable.
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly.
- See the
border-style property definition in CSS2.
Exceptions on setting
DOMException
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable.
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly.
- See the
border-top property definition in CSS2.
Exceptions on setting
DOMException
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable.
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly.
- See the
border-top-color property definition in CSS2.
Exceptions on setting
DOMException
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable.
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly.
- See the
border-top-style property definition in CSS2.
Exceptions on setting
DOMException
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable.
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly.
- See the
border-top-width property definition in CSS2.
Exceptions on setting
DOMException
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable.
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly.
- See the
border-width property definition in CSS2.
Exceptions on setting
DOMException
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable.
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly.
- See the
bottom property definition in CSS2.
Exceptions on setting
DOMException
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable.
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly.
- See the
caption-side property definition in CSS2.
Exceptions on setting
DOMException
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable.
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly.
- See the
clear property definition in CSS2.
Exceptions on setting
DOMException
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable.
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly.
- See the
clip property definition in CSS2.
Exceptions on setting
DOMException
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable.
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly.
- See the
color property definition in CSS2.
Exceptions on setting
DOMException
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable.
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly.
- See the
content property definition in CSS2.
Exceptions on setting
DOMException
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable.
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly.
- See the
counter-increment property definition in CSS2.
Exceptions on setting
DOMException
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable.
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly.
- See the
counter-reset property definition in CSS2.
Exceptions on setting
DOMException
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable.
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly.
- See the
float property definition in CSS2.
Exceptions on setting
DOMException
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable.
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly.
- See the
cue property definition in CSS2.
Exceptions on setting
DOMException
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable.
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly.
- See the
cue-after property definition in CSS2.
Exceptions on setting
DOMException
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable.
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly.
- See the
cue-before property definition in CSS2.
Exceptions on setting
DOMException
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable.
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly.
- See the
cursor property definition in CSS2.
Exceptions on setting
DOMException
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable.
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly.
- See the
direction property definition in CSS2.
Exceptions on setting
DOMException
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable.
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly.
- See the
display property definition in CSS2.
Exceptions on setting
DOMException
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable.
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly.
- See the
elevation property definition in CSS2.
Exceptions on setting
DOMException
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable.
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly.
- See the
empty-cells property definition in CSS2.
Exceptions on setting
DOMException
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable.
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly.
- See the
font property definition in CSS2.
Exceptions on setting
DOMException
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable.
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly.
- See the
font-family property definition in CSS2.
Exceptions on setting
DOMException
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable.
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly.
- See the
font-size property definition in CSS2.
Exceptions on setting
DOMException
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable.
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly.
- See the
font-size-adjust property definition in CSS2.
Exceptions on setting
DOMException
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable.
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly.
- See the
font-stretch property definition in CSS2.
Exceptions on setting
DOMException
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable.
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly.
- See the
font-style property definition in CSS2.
Exceptions on setting
DOMException
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable.
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly.
- See the
font-variant property definition in CSS2.
Exceptions on setting
DOMException
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable.
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly.
- See the
font-weight property definition in CSS2.
Exceptions on setting
DOMException
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable.
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly.
- See the
height property definition in CSS2.
Exceptions on setting
DOMException
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable.
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly.
- See the
left property definition in CSS2.
Exceptions on setting
DOMException
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable.
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly.
- See the
letter-spacing property definition in CSS2.
Exceptions on setting
DOMException
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable.
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly.
- See the
line-height property definition in CSS2.
Exceptions on setting
DOMException
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable.
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly.
- See the
list-style property definition in CSS2.
Exceptions on setting
DOMException
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable.
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly.
- See the
list-style-image property definition in CSS2.
Exceptions on setting
DOMException
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable.
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly.
- See the
list-style-position property definition in CSS2.
Exceptions on setting
DOMException
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable.
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly.
- See the
list-style-type property definition in CSS2.
Exceptions on setting
DOMException
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable.
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly.
- See the
margin property definition in CSS2.
Exceptions on setting
DOMException
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable.
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly.
- See the
margin-bottom property definition in CSS2.
Exceptions on setting
DOMException
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable.
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly.
- See the
margin-left property definition in CSS2.
Exceptions on setting
DOMException
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable.
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly.
- See the
margin-right property definition in CSS2.
Exceptions on setting
DOMException
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable.
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly.
- See the
margin-top property definition in CSS2.
Exceptions on setting
DOMException
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable.
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly.
- See the
marker-offset property definition in CSS2.
Exceptions on setting
DOMException
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable.
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly.
- See the
marks property definition in CSS2.
Exceptions on setting
DOMException
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable.
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly.
- See the
max-height property definition in CSS2.
Exceptions on setting
DOMException
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable.
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly.
- See the
max-width property definition in CSS2.
Exceptions on setting
DOMException
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable.
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly.
- See the
min-height property definition in CSS2.
Exceptions on setting
DOMException
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable.
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly.
- See the
min-width property definition in CSS2.
Exceptions on setting
DOMException
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable.
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly.
- See the
orphans property definition in CSS2.
Exceptions on setting
DOMException
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable.
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly.
- See the
outline property definition in CSS2.
Exceptions on setting
DOMException
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable.
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly.
- See the
outline-color property definition in CSS2.
Exceptions on setting
DOMException
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable.
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly.
- See the
outline-style property definition in CSS2.
Exceptions on setting
DOMException
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable.
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly.
- See the
outline-width property definition in CSS2.
Exceptions on setting
DOMException
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable.
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly.
- See the
overflow property definition in CSS2.
Exceptions on setting
DOMException
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable.
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly.
- See the
padding property definition in CSS2.
Exceptions on setting
DOMException
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable.
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly.
- See the
padding-bottom property definition in CSS2.
Exceptions on setting
DOMException
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable.
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly.
- See the
padding-left property definition in CSS2.
Exceptions on setting
DOMException
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable.
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly.
- See the
padding-right property definition in CSS2.
Exceptions on setting
DOMException
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable.
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly.
- See the
padding-top property definition in CSS2.
Exceptions on setting
DOMException
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable.
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly.
- See the
page property definition in CSS2.
Exceptions on setting
DOMException
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable.
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly.
- See the
page-break-after property definition in CSS2.
Exceptions on setting
DOMException
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable.
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly.
- See the
page-break-before property definition in CSS2.
Exceptions on setting
DOMException
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable.
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly.
- See the
page-break-inside property definition in CSS2.
Exceptions on setting
DOMException
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable.
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly.
- See the
pause property definition in CSS2.
Exceptions on setting
DOMException
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable.
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly.
- See the
pause-after property definition in CSS2.
Exceptions on setting
DOMException
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable.
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly.
- See the
pause-before property definition in CSS2.
Exceptions on setting
DOMException
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable.
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly.
- See the
pitch property definition in CSS2.
Exceptions on setting
DOMException
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable.
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly.
- See the
pitch-range property definition in CSS2.
Exceptions on setting
DOMException
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable.
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly.
- See the
play-during property definition in CSS2.
Exceptions on setting
DOMException
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable.
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly.
- See the
position property definition in CSS2.
Exceptions on setting
DOMException
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable.
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly.
- See the
quotes property definition in CSS2.
Exceptions on setting
DOMException
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable.
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly.
- See the
richness property definition in CSS2.
Exceptions on setting
DOMException
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable.
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly.
- See the
right property definition in CSS2.
Exceptions on setting
DOMException
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable.
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly.
- See the
size property definition in CSS2.
Exceptions on setting
DOMException
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable.
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly.
- See the
speak property definition in CSS2.
Exceptions on setting
DOMException
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable.
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly.
- See the
speak-header property definition in CSS2.
Exceptions on setting
DOMException
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable.
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly.
- See the
speak-numeral property definition in CSS2.
Exceptions on setting
DOMException
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable.
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly.
- See the
speak-punctuation property definition in CSS2.
Exceptions on setting
DOMException
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable.
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly.
- See the
speech-rate property definition in CSS2.
Exceptions on setting
DOMException
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable.
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly.
- See the
stress property definition in CSS2.
Exceptions on setting
DOMException
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable.
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly.
- See the
table-layout property definition in CSS2.
Exceptions on setting
DOMException
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable.
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly.
- See the
text-align property definition in CSS2.
Exceptions on setting
DOMException
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable.
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly.
- See the
text-decoration property definition in CSS2.
Exceptions on setting
DOMException
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable.
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly.
- See the
text-indent property definition in CSS2.
Exceptions on setting
DOMException
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable.
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly.
- See the
text-shadow property definition in CSS2.
Exceptions on setting
DOMException
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable.
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly.
- See the
text-transform property definition in CSS2.
Exceptions on setting
DOMException
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable.
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly.
- See the
top property definition in CSS2.
Exceptions on setting
DOMException
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable.
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly.
- See the
unicode-bidi property definition in CSS2.
Exceptions on setting
DOMException
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable.
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly.
- See the
vertical-align property definition in CSS2.
Exceptions on setting
DOMException
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable.
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly.
- See the
visibility property definition in CSS2.
Exceptions on setting
DOMException
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable.
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly.
- See the
voice-family property definition in CSS2.
Exceptions on setting
DOMException
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable.
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly.
- See the
volume property definition in CSS2.
Exceptions on setting
DOMException
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable.
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly.
- See the
white-space property definition in CSS2.
Exceptions on setting
DOMException
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable.
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly.
- See the
widows property definition in CSS2.
Exceptions on setting
DOMException
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable.
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly.
- See the
width property definition in CSS2.
Exceptions on setting
DOMException
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable.
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly.
- See the
word-spacing property definition in CSS2.
Exceptions on setting
DOMException
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable.
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly.
- See the
z-index property definition in CSS2.
Exceptions on setting
DOMException
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable.
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly.
azimuth
of typeDOMString
background
of typeDOMString
backgroundAttachment
of typeDOMString
backgroundColor
of typeDOMString
backgroundImage
of typeDOMString
backgroundPosition
of typeDOMString
backgroundRepeat
of typeDOMString
border
of typeDOMString
borderBottom
of typeDOMString
borderBottomColor
of typeDOMString
borderBottomStyle
of typeDOMString
borderBottomWidth
of typeDOMString
borderCollapse
of typeDOMString
borderColor
of typeDOMString
borderLeft
of typeDOMString
borderLeftColor
of typeDOMString
borderLeftStyle
of typeDOMString
borderLeftWidth
of typeDOMString
borderRight
of typeDOMString
borderRightColor
of typeDOMString
borderRightStyle
of typeDOMString
borderRightWidth
of typeDOMString
borderSpacing
of typeDOMString
borderStyle
of typeDOMString
borderTop
of typeDOMString
borderTopColor
of typeDOMString
borderTopStyle
of typeDOMString
borderTopWidth
of typeDOMString
borderWidth
of typeDOMString
bottom
of typeDOMString
captionSide
of typeDOMString
clear
of typeDOMString
clip
of typeDOMString
color
of typeDOMString
content
of typeDOMString
counterIncrement
of typeDOMString
counterReset
of typeDOMString
cssFloat
of typeDOMString
cue
of typeDOMString
cueAfter
of typeDOMString
cueBefore
of typeDOMString
cursor
of typeDOMString
direction
of typeDOMString
display
of typeDOMString
elevation
of typeDOMString
emptyCells
of typeDOMString
font
of typeDOMString
fontFamily
of typeDOMString
fontSize
of typeDOMString
fontSizeAdjust
of typeDOMString
fontStretch
of typeDOMString
fontStyle
of typeDOMString
fontVariant
of typeDOMString
fontWeight
of typeDOMString
height
of typeDOMString
left
of typeDOMString
letterSpacing
of typeDOMString
lineHeight
of typeDOMString
listStyle
of typeDOMString
listStyleImage
of typeDOMString
listStylePosition
of typeDOMString
listStyleType
of typeDOMString
margin
of typeDOMString
marginBottom
of typeDOMString
marginLeft
of typeDOMString
marginRight
of typeDOMString
marginTop
of typeDOMString
markerOffset
of typeDOMString
marks
of typeDOMString
maxHeight
of typeDOMString
maxWidth
of typeDOMString
minHeight
of typeDOMString
minWidth
of typeDOMString
orphans
of typeDOMString
outline
of typeDOMString
outlineColor
of typeDOMString
outlineStyle
of typeDOMString
outlineWidth
of typeDOMString
overflow
of typeDOMString
padding
of typeDOMString
paddingBottom
of typeDOMString
paddingLeft
of typeDOMString
paddingRight
of typeDOMString
paddingTop
of typeDOMString
page
of typeDOMString
pageBreakAfter
of typeDOMString
pageBreakBefore
of typeDOMString
pageBreakInside
of typeDOMString
pause
of typeDOMString
pauseAfter
of typeDOMString
pauseBefore
of typeDOMString
pitch
of typeDOMString
pitchRange
of typeDOMString
playDuring
of typeDOMString
position
of typeDOMString
quotes
of typeDOMString
richness
of typeDOMString
right
of typeDOMString
size
of typeDOMString
speak
of typeDOMString
speakHeader
of typeDOMString
speakNumeral
of typeDOMString
speakPunctuation
of typeDOMString
speechRate
of typeDOMString
stress
of typeDOMString
tableLayout
of typeDOMString
textAlign
of typeDOMString
textDecoration
of typeDOMString
textIndent
of typeDOMString
textShadow
of typeDOMString
textTransform
of typeDOMString
top
of typeDOMString
unicodeBidi
of typeDOMString
verticalAlign
of typeDOMString
visibility
of typeDOMString
voiceFamily
of typeDOMString
volume
of typeDOMString
whiteSpace
of typeDOMString
widows
of typeDOMString
width
of typeDOMString
wordSpacing
of typeDOMString
zIndex
of typeDOMString
- See the
azimuth property definition in CSS2.
IDL Definition -