Copyright © 2000 W3C® (MIT, INRIA, Keio), All Rights Reserved. W3C liability, trademark, document use and software licensing rules apply.
This specification defines the Document Object Model Level 2 Style Sheets and Cascading Style Sheets (CSS), a platform- and language-neutral interface that allows programs and scripts to dynamically access and update the content and of style sheets documents. The Document Object Model Level 2 Style builds on the Document Object Model Level 2 Core [DOM Level 2 Core] and on the Document Object Model Level 2 Views [DOM Level 2 Views].
This section describes the status of this document at the time of its publication. Other documents may supersede this document. The latest status of this document series is maintained at the W3C.
This specification is a Superseded Recommendation. A newer specification exists that is recommended for new adoption in place of this specification.
For purposes of the W3C Patent Policy, this Superseded Recommendation has the same status as an active Recommendation; it retains licensing commitments and remains available as a reference for old — and possibly still deployed — implementations, but is not recommended for future implementation. New implementations should follow the Living Standard of the DOM specification.
This document has been produced as part of the W3C DOM Activity. The authors of this document are the DOM Working Group members. Different modules of the Document Object Model have different editors.
Please send general comments about this document to the public mailing list www-dom@w3.org. An archive is available at http://lists.w3.org/Archives/Public/www-dom/.
The English version of this specification is the only normative version. Information about translations of this document is available at http://www.w3.org/2000/11/DOM-Level-2-translations.
The list of known errors in this document is available at http://www.w3.org/2000/11/DOM-Level-2-errata
A list of current W3C Recommendations and other technical documents can be found at http://www.w3.org/TR.
Copyright © 2000 World Wide Web Consortium, (Massachusetts Institute of Technology, Institut National de Recherche en Informatique et en Automatique, Keio University). All Rights Reserved.
This document is published under the W3C Document Copyright Notice and License. The bindings within this document are published under the W3C Software Copyright Notice and License. The software license requires "Notice of any changes or modifications to the W3C files, including the date changes were made." Consequently, modified versions of the DOM bindings must document that they do not conform to the W3C standard; in the case of the IDL definitions, the pragma prefix can no longer be 'w3c.org'; in the case of the Java Language binding, the package names can no longer be in the 'org.w3c' package.
Note: This section is a copy of the W3C Document Notice and License and could be found at http://www.w3.org/Consortium/Legal/copyright-documents-19990405.
Copyright © 1994-2000 World Wide Web Consortium, (Massachusetts Institute of Technology, Institut National de Recherche en Informatique et en Automatique, Keio University). All Rights Reserved.
http://www.w3.org/Consortium/Legal/
Public documents on the W3C site are provided by the copyright holders under the following license. The software or Document Type Definitions (DTDs) associated with W3C specifications are governed by the Software Notice. By using and/or copying this document, or the W3C document from which this statement is linked, you (the licensee) agree that you have read, understood, and will comply with the following terms and conditions:
Permission to use, copy, and distribute the contents of this document, or the W3C document from which this statement is linked, in any medium for any purpose and without fee or royalty is hereby granted, provided that you include the following on ALL copies of the document, or portions thereof, that you use:
When space permits, inclusion of the full text of this NOTICE should be provided. We request that authorship attribution be provided in any software, documents, or other items or products that you create pursuant to the implementation of the contents of this document, or any portion thereof.
No right to create modifications or derivatives of W3C documents is granted pursuant to this license. However, if additional requirements (documented in the Copyright FAQ) are satisfied, the right to create modifications or derivatives is sometimes granted by the W3C to individuals complying with those requirements.
THIS DOCUMENT IS PROVIDED "AS IS," AND COPYRIGHT HOLDERS MAKE NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, OR TITLE; THAT THE CONTENTS OF THE DOCUMENT ARE SUITABLE FOR ANY PURPOSE; NOR THAT THE IMPLEMENTATION OF SUCH CONTENTS WILL NOT INFRINGE ANY THIRD PARTY PATENTS, COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS.
COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE DOCUMENT OR THE PERFORMANCE OR IMPLEMENTATION OF THE CONTENTS THEREOF.
The name and trademarks of copyright holders may NOT be used in advertising or publicity pertaining to this document or its contents without specific, written prior permission. Title to copyright in this document will at all times remain with copyright holders.
Note: This section is a copy of the W3C Software Copyright Notice and License and could be found at http://www.w3.org/Consortium/Legal/copyright-software-19980720
Copyright © 1994-2000 World Wide Web Consortium, (Massachusetts Institute of Technology, Institut National de Recherche en Informatique et en Automatique, Keio University). All Rights Reserved.
http://www.w3.org/Consortium/Legal/
This W3C work (including software, documents, or other related items) is being provided by the copyright holders under the following license. By obtaining, using and/or copying this work, you (the licensee) agree that you have read, understood, and will comply with the following terms and conditions:
Permission to use, copy, and modify this software and its documentation, with or without modification, for any purpose and without fee or royalty is hereby granted, provided that you include the following on ALL copies of the software and documentation or portions thereof, including modifications, that you make:
THIS SOFTWARE AND DOCUMENTATION IS PROVIDED "AS IS," AND COPYRIGHT HOLDERS MAKE NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO, WARRANTIES OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF THE SOFTWARE OR DOCUMENTATION WILL NOT INFRINGE ANY THIRD PARTY PATENTS, COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS.
COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE SOFTWARE OR DOCUMENTATION.
The name and trademarks of copyright holders may NOT be used in advertising or publicity pertaining to the software without specific, written prior permission. Title to copyright in this software and any associated documentation will at all times remain with copyright holders.
The DOM Level 2 Style Sheet interfaces are base interfaces used to represent any type of style sheet. The expectation is that DOM modules that represent a specific style sheet language may contain interfaces that derive from these interfaces.
The interfaces found within this section are not mandatory. A
DOM application may use the hasFeature(feature,
version)
method of the DOMImplementation
interface with parameter values "StyleSheets" 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 2 Core specification [DOM Level 2 Core]. Please refer
to additional information about
conformance in the DOM Level 2 Core specification [DOM Level 2
Core].
This set of interfaces represents the generic notion of style sheets.
The StyleSheet
interface is the abstract base
interface for any type of style sheet. It represents a single style
sheet associated with a structured document. In HTML, the
StyleSheet interface represents either an external style sheet,
included via the HTML
LINK element, or an inline
STYLE element. In XML, this interface represents an
external style sheet, included via a style
sheet processing instruction.
// Introduced in DOM Level 2: interface StyleSheet { readonly attribute DOMString type; attribute boolean disabled; readonly attribute Node ownerNode; readonly attribute StyleSheet parentStyleSheet; readonly attribute DOMString href; readonly attribute DOMString title; readonly attribute MediaList media; };
disabled
of type
boolean
false
if the style sheet is applied to the
document. true
if it is not. Modifying this attribute
may cause a new resolution of style for the document. A stylesheet
only applies if both an appropriate medium definition is present
and the disabled attribute is false. So, if the media doesn't apply
to the current user agent, the disabled
attribute is
ignored.href
of type
DOMString
, readonlynull
. See the
href attribute definition for the LINK
element in HTML 4.0, and the href pseudo-attribute for the XML
style sheet processing instruction.media
of type MediaList
,
readonlyownerNode
. If no media has
been specified, the MediaList
will be empty. See the
media attribute definition for the LINK
element in HTML 4.0, and the media pseudo-attribute for the XML
style sheet processing instruction . Modifying the
media list may cause a change to the attribute
disabled
.ownerNode
of
type Node
, readonlyLINK
or
STYLE
element. For XML, it may be the linking
processing instruction. For style sheets that are included by other
style sheets, the value of this attribute is
null
.parentStyleSheet
of type StyleSheet
,
readonlynull
.title
of type
DOMString
, readonlyownerNode
. See the
title attribute definition for the LINK
element in HTML 4.0, and the title pseudo-attribute for the XML
style sheet processing instruction.type
of type
DOMString
, readonlyownerNode
. Also see the
type attribute definition for the LINK
element in HTML 4.0, and the type pseudo-attribute for the XML style
sheet processing instruction.The StyleSheetList
interface provides the
abstraction of an ordered collection of style sheets.
The items in the StyleSheetList
are accessible via
an integral index, starting from 0.
// Introduced in DOM Level 2: interface StyleSheetList { readonly attribute unsigned long length; StyleSheet item(in unsigned long index); };
length
of type
unsigned long
, readonlyStyleSheets
in the list. The range of valid child stylesheet indices is
0
to length-1
inclusive.item
null
.
index
of type
unsigned long
The style sheet at the |
The MediaList
interface provides the abstraction of
an ordered collection of
media, without defining or constraining how this
collection is implemented. An empty list is the same as a list that
contains the medium "all"
.
The items in the MediaList
are accessible via an
integral index, starting from 0.
// Introduced in DOM Level 2: interface MediaList { attribute DOMString mediaText; // raises(DOMException) on setting readonly attribute unsigned long length; DOMString item(in unsigned long index); void deleteMedium(in DOMString oldMedium) raises(DOMException); void appendMedium(in DOMString newMedium) raises(DOMException); };
length
of type
unsigned long
, readonly0
to length-1
inclusive.mediaText
of type
DOMString
|
SYNTAX_ERR: Raised if the specified string value has a syntax error and is unparsable. NO_MODIFICATION_ALLOWED_ERR: Raised if this media list is readonly. |
appendMedium
newMedium
to the
end of the list. If the newMedium
is already used, it
is first removed.
newMedium
of type
DOMString
|
INVALID_CHARACTER_ERR: If the medium contains characters that are invalid in the underlying style language. NO_MODIFICATION_ALLOWED_ERR: Raised if this list is readonly. |
deleteMedium
oldMedium
from the list.
oldMedium
of type
DOMString
|
NO_MODIFICATION_ALLOWED_ERR: Raised if this list is readonly. NOT_FOUND_ERR: Raised if |
item
index
th in the list.
If index
is greater than or equal to the number of
media in the list, this returns null
.
index
of type
unsigned long
|
The medium at the |
The LinkStyle
interface provides a mechanism by
which a style sheet can be retrieved from the node responsible for
linking it into a document. An instance of the
LinkStyle
interface can be obtained using
binding-specific casting methods on an instance of a linking node
(HTMLLinkElement
, HTMLStyleElement
or
ProcessingInstruction
in DOM Level 2).
// Introduced in DOM Level 2: interface LinkStyle { readonly attribute StyleSheet sheet; };
sheet
of type StyleSheet
,
readonlyThe DocumentStyle
interface provides a mechanism by
which the style sheets embedded in a document can be retrieved. The
expectation is that an instance of the DocumentStyle
interface can be obtained by using binding-specific casting methods
on an instance of the Document
interface.
// Introduced in DOM Level 2: interface DocumentStyle { readonly attribute StyleSheetList styleSheets; };
styleSheets
of type StyleSheetList
,
readonlyHTMLLinkElement
interface in the [DOM Level 2 HTML] and [HTML4.0]). The
underlying style sheet will be created after the element is
inserted into the document and both the href and the type attribute
have been set in a way indicating that the linked object is a style
sheet.HTMLStyleElement
interface in the [DOM Level 2 HTML] and [HTML4.0]). The
underlying style sheet will be created after the element is
inserted into the document and the type attribute is set in a way
indicating that the element corresponds to a style sheet language
interpreted by the user agent.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.
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].
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); };
cssRules
of type CSSRuleList
,
readonlyownerRule
of type CSSRule
, readonly@import
rule,
the ownerRule
attribute will contain the CSSImportRule
.
In that case, the ownerNode
attribute in the StyleSheet
interface will be null
. If the style sheet comes from
an element or a processing instruction, the ownerRule
attribute will be null
and the ownerNode
attribute will contain the Node
.deleteRule
index
of type
unsigned long
|
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. |
insertRule
rule
of type
DOMString
index
of type
unsigned long
|
The index within the style sheet's rule collection of the newly inserted rule. |
|
HIERARCHY_REQUEST_ERR: Raised if the rule cannot be inserted at
the specified index e.g. if an 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 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); };
item
null
.
index
of type
unsigned long
The style rule at the |
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
the CSSUnknownRule
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; };
An integer indicating which type of rule this is.
CHARSET_RULE
CSSCharsetRule
.FONT_FACE_RULE
CSSFontFaceRule
.IMPORT_RULE
CSSImportRule
.MEDIA_RULE
CSSMediaRule
.PAGE_RULE
CSSPageRule
.STYLE_RULE
CSSStyleRule
.UNKNOWN_RULE
CSSUnknownRule
.cssText
of type
DOMString
|
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. |
parentRule
of type CSSRule
, readonlynull
.parentStyleSheet
of type CSSStyleSheet
,
readonlytype
of type unsigned
short
, readonlyCSSRule
interface to the specific
derived interface implied by the type
.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; };
selectorText
of
type DOMString
|
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. |
style
of type CSSStyleDeclaration
,
readonlyThe 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); };
cssRules
of type CSSRuleList
,
readonlymedia
of type
stylesheets::MediaList
, readonlydeleteRule
index
of type
unsigned long
|
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. |
insertRule
rule
of type
DOMString
index
of type
unsigned long
|
The index within the media block's rule collection of the newly inserted rule. |
|
HIERARCHY_REQUEST_ERR: Raised if the rule cannot be inserted at
the specified index, e.g., if an 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 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; };
style
of type CSSStyleDeclaration
,
readonlyThe 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; };
selectorText
of type
DOMString
|
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. |
style
of type CSSStyleDeclaration
,
readonlyThe 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; };
href
of type
DOMString
, readonly"url(...)"
specifier around the
URI.media
of type
stylesheets::MediaList
, readonlystyleSheet
of type
CSSStyleSheet
,
readonlynull
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).The CSSCharsetRule
interface represents a
@charset rule in a CSS style sheet. The value of the
encoding
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 the encoding
attribute is the value found in the @charset
rule. If
there was no @charset
in the original document, then
no CSSCharsetRule
is created. The value of the
encoding
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 the CSSCharsetRule
.
// Introduced in DOM Level 2: interface CSSCharsetRule : CSSRule { attribute DOMString encoding; // raises(DOMException) on setting };
encoding
of type
DOMString
@charset
rule.
|
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. |
The CSSUnknownRule
interface represents an at-rule
not supported by this user agent.
// Introduced in DOM Level 2: interface CSSUnknownRule : CSSRule { };
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 the CSS2Properties
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; };
cssText
of type
DOMString
|
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. |
length
of type
unsigned long
, readonlyparentRule
of
type CSSRule
,
readonlynull
if this CSSStyleDeclaration
is not
attached to a CSSRule
.getPropertyCSSValue
null
if
the property is a
shorthand property. Shorthand property values can only
be accessed and modified as strings, using the
getPropertyValue
and setProperty
methods.
propertyName
of type
DOMString
Returns the value of the property if it has been explicitly set
for this declaration block. Returns |
getPropertyPriority
"important"
qualifier) if the property has
been explicitly set in this declaration block.
propertyName
of type
DOMString
|
A string representing the priority (e.g.
|
getPropertyValue
propertyName
of type
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. |
item
index
of type
unsigned long
|
The name of the property at this ordinal position. The empty string if no property exists at this position. |
removeProperty
propertyName
of type
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. |
|
NO_MODIFICATION_ALLOWED_ERR: Raised if this declaration is readonly or the property is readonly. |
setProperty
propertyName
of type
DOMString
value
of type
DOMString
priority
of type
DOMString
"important"
).
|
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. |
The CSSValue
interface represents a simple or a
complex value. A CSSValue
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; };
An integer indicating which type of unit applies to the value.
CSS_CUSTOM
CSS_INHERIT
cssText
contains
"inherit".CSS_PRIMITIVE_VALUE
CSSPrimitiveValue
interface can be obtained by using binding-specific casting methods
on this instance of the CSSValue
interface.CSS_VALUE_LIST
CSSValue
list and an instance of
the CSSValueList
interface can be obtained by using binding-specific casting methods
on this instance of the CSSValue
interface.cssText
of type
DOMString
|
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. |
cssValueType
of type
unsigned short
, readonlyThe 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 the
getPropertyCSSValue
method of the CSSStyleDeclaration
interface. A CSSPrimitiveValue
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); };
An integer indicating which type of unit applies to the value.
CSS_ATTR
getStringValue
method.CSS_CM
getFloatValue
method.CSS_COUNTER
getCounterValue
method.CSS_DEG
getFloatValue
method.CSS_DIMENSION
getFloatValue
method.CSS_EMS
getFloatValue
method.CSS_EXS
getFloatValue
method.CSS_GRAD
getFloatValue
method.CSS_HZ
getFloatValue
method.CSS_IDENT
getStringValue
method.CSS_IN
getFloatValue
method.CSS_KHZ
getFloatValue
method.CSS_MM
getFloatValue
method.CSS_MS
getFloatValue
method.CSS_NUMBER
getFloatValue
method.CSS_PC
getFloatValue
method.CSS_PERCENTAGE
getFloatValue
method.CSS_PT
getFloatValue
method.CSS_PX
getFloatValue
method.CSS_RAD
getFloatValue
method.CSS_RECT
getRectValue
method.CSS_RGBCOLOR
getRGBColorValue
method.CSS_S
getFloatValue
method.CSS_STRING
getStringValue
method.CSS_UNKNOWN
cssText
attribute.CSS_URI
getStringValue
method.primitiveType
of type unsigned short
, readonlygetCounterValue
DOMException
is raised. Modification to the
corresponding style property can be achieved using the Counter
interface.
The Counter value. |
|
INVALID_ACCESS_ERR: Raised if the CSS value doesn't contain a
Counter value (e.g. this is not |
getFloatValue
DOMException
is raised.
unitType
of type
unsigned short
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 float value in the specified unit. |
|
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. |
getRGBColorValue
DOMException
is raised. Modification to the
corresponding style property can be achieved using the RGBColor
interface.
the RGB color value. |
|
INVALID_ACCESS_ERR: Raised if the attached property can't return
a RGB color value (e.g. this is not |
getRectValue
DOMException
is raised. Modification to the
corresponding style property can be achieved using the Rect
interface.
The Rect value. |
|
INVALID_ACCESS_ERR: Raised if the CSS value doesn't contain a
Rect value. (e.g. this is not |
getStringValue
DOMException
is raised.
Note: Some properties (like 'font-family' or 'voice-family') convert a whitespace separated list of idents to a string.
|
The string value in the current unit. The current
|
|
INVALID_ACCESS_ERR: Raised if the CSS value doesn't contain a string value. |
setFloatValue
DOMException
will be raised.
unitType
of type
unsigned short
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
).floatValue
of type
float
|
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. |
setStringValue
DOMException
will be raised.
stringType
of type
unsigned short
CSS_STRING
,
CSS_URI
, CSS_IDENT
, and
CSS_ATTR
).stringValue
of type
DOMString
|
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. |
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 value
none
.
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); };
item
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 returns
null
.
index
of type
unsigned long
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 the CSSPrimitiveValue
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; };
blue
of type CSSPrimitiveValue
,
readonlygreen
of type CSSPrimitiveValue
,
readonlyred
of type CSSPrimitiveValue
,
readonlyThe Rect
interface is used to represent any
rect value. This interface reflects the values in the
underlying style property. Hence, modifications made to the CSSPrimitiveValue
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; };
bottom
of type CSSPrimitiveValue
,
readonlyleft
of type CSSPrimitiveValue
,
readonlyright
of type CSSPrimitiveValue
,
readonlytop
of type CSSPrimitiveValue
,
readonlyThe 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; };
identifier
of type
DOMString
, readonlylistStyle
of type
DOMString
, readonlyseparator
of type
DOMString
, readonlyThis 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 the AbstractView
interface.
Since a computed style is related to an Element
node, if this element is removed from the document, the associated
CSSStyleDeclaration
and CSSValue
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); };
getComputedStyle
elt
of type
Element
pseudoElt
of type
DOMString
null
if none.
The computed style. The |
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 the
Document
interface.
// Introduced in DOM Level 2: interface DocumentCSS : stylesheets::DocumentStyle { CSSStyleDeclaration getOverrideStyle(in Element elt, in DOMString pseudoElt); };
getOverrideStyle
elt
of type
Element
pseudoElt
of type
DOMString
null
if none.
The override style declaration. |
This interface allows the DOM user to create a CSSStyleSheet
outside the context of a document. There is no way to associate the
new CSSStyleSheet
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); };
createCSSStyleSheet
CSSStyleSheet
.
title
of type
DOMString
media
of type
DOMString
A new CSS style sheet. |
|
SYNTAX_ERR: Raised if the specified media string value has a syntax error and is unparsable. |
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; };
style
of type CSSStyleDeclaration
,
readonlyThe 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].
The CSS2Properties
interface represents a
convenience mechanism for retrieving and setting properties within
a CSSStyleDeclaration
.
The attributes of this interface correspond to all the
properties specified in CSS2. Getting an attribute of this
interface is equivalent to calling the
getPropertyValue
method of the CSSStyleDeclaration
interface. Setting an attribute of this interface is equivalent to
calling the setProperty
method of the CSSStyleDeclaration
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 the CSSStyleDeclaration
interface to the CSS2Properties
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, the marginTop
,
marginRight
, marginBottom
and
marginLeft
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
,
and border-[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 };
azimuth
of type
DOMString
|
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable. NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. |
background
of type
DOMString
|
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable. NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. |
backgroundAttachment
of type DOMString
|
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable. NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. |
backgroundColor
of type DOMString
|
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable. NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. |
backgroundImage
of type DOMString
|
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable. NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. |
backgroundPosition
of type DOMString
|
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable. NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. |
backgroundRepeat
of type DOMString
|
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable. NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. |
border
of type
DOMString
|
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable. NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. |
borderBottom
of
type DOMString
|
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable. NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. |
borderBottomColor
of type DOMString
|
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable. NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. |
borderBottomStyle
of type DOMString
|
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable. NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. |
borderBottomWidth
of type DOMString
|
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable. NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. |
borderCollapse
of type DOMString
|
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable. NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. |
borderColor
of
type DOMString
|
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable. NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. |
borderLeft
of type
DOMString
|
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable. NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. |
borderLeftColor
of type DOMString
|
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable. NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. |
borderLeftStyle
of type DOMString
|
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable. NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. |
borderLeftWidth
of type DOMString
|
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable. NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. |
borderRight
of
type DOMString
|
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable. NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. |
borderRightColor
of type DOMString
|
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable. NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. |
borderRightStyle
of type DOMString
|
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable. NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. |
borderRightWidth
of type DOMString
|
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable. NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. |
borderSpacing
of
type DOMString
|
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable. NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. |
borderStyle
of
type DOMString
|
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable. NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. |
borderTop
of type
DOMString
|
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable. NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. |
borderTopColor
of type DOMString
|
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable. NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. |
borderTopStyle
of type DOMString
|
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable. NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. |
borderTopWidth
of type DOMString
|
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable. NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. |
borderWidth
of
type DOMString
|
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable. NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. |
bottom
of type
DOMString
|
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable. NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. |
captionSide
of
type DOMString
|
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable. NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. |
clear
of type
DOMString
|
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable. NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. |
clip
of type
DOMString
|
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable. NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. |
color
of type
DOMString
|
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable. NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. |
content
of type
DOMString
|
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable. NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. |
counterIncrement
of type DOMString
|
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable. NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. |
counterReset
of
type DOMString
|
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable. NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. |
cssFloat
of type
DOMString
|
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable. NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. |
cue
of type
DOMString
|
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable. NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. |
cueAfter
of type
DOMString
|
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable. NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. |
cueBefore
of type
DOMString
|
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable. NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. |
cursor
of type
DOMString
|
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable. NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. |
direction
of type
DOMString
|
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable. NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. |
display
of type
DOMString
|
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable. NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. |
elevation
of type
DOMString
|
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable. NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. |
emptyCells
of type
DOMString
|
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable. NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. |
font
of type
DOMString
|
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable. NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. |
fontFamily
of type
DOMString
|
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable. NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. |
fontSize
of type
DOMString
|
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable. NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. |
fontSizeAdjust
of type DOMString
|
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable. NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. |
fontStretch
of
type DOMString
|
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable. NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. |
fontStyle
of type
DOMString
|
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable. NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. |
fontVariant
of
type DOMString
|
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable. NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. |
fontWeight
of type
DOMString
|
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable. NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. |
height
of type
DOMString
|
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable. NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. |
left
of type
DOMString
|
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable. NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. |
letterSpacing
of
type DOMString
|
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable. NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. |
lineHeight
of type
DOMString
|
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable. NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. |
listStyle
of type
DOMString
|
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable. NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. |
listStyleImage
of type DOMString
|
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable. NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. |
listStylePosition
of type DOMString
|
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable. NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. |
listStyleType
of
type DOMString
|
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable. NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. |
margin
of type
DOMString
|
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable. NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. |
marginBottom
of
type DOMString
|
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable. NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. |
marginLeft
of type
DOMString
|
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable. NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. |
marginRight
of
type DOMString
|
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable. NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. |
marginTop
of type
DOMString
|
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable. NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. |
markerOffset
of
type DOMString
|
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable. NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. |
marks
of type
DOMString
|
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable. NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. |
maxHeight
of type
DOMString
|
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable. NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. |
maxWidth
of type
DOMString
|
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable. NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. |
minHeight
of type
DOMString
|
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable. NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. |
minWidth
of type
DOMString
|
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable. NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. |
orphans
of type
DOMString
|
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable. NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. |
outline
of type
DOMString
|
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable. NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. |
outlineColor
of
type DOMString
|
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable. NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. |
outlineStyle
of
type DOMString
|
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable. NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. |
outlineWidth
of
type DOMString
|
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable. NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. |
overflow
of type
DOMString
|
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable. NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. |
padding
of type
DOMString
|
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable. NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. |
paddingBottom
of
type DOMString
|
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable. NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. |
paddingLeft
of
type DOMString
|
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable. NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. |
paddingRight
of
type DOMString
|
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable. NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. |
paddingTop
of type
DOMString
|
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable. NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. |
page
of type
DOMString
|
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable. NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. |
pageBreakAfter
of type DOMString
|
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable. NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. |
pageBreakBefore
of type DOMString
|
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable. NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. |
pageBreakInside
of type DOMString
|
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable. NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. |
pause
of type
DOMString
|
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable. NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. |
pauseAfter
of type
DOMString
|
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable. NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. |
pauseBefore
of
type DOMString
|
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable. NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. |
pitch
of type
DOMString
|
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable. NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. |
pitchRange
of type
DOMString
|
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable. NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. |
playDuring
of type
DOMString
|
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable. NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. |
position
of type
DOMString
|
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable. NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. |
quotes
of type
DOMString
|
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable. NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. |
richness
of type
DOMString
|
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable. NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. |
right
of type
DOMString
|
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable. NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. |
size
of type
DOMString
|
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable. NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. |
speak
of type
DOMString
|
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable. NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. |
speakHeader
of
type DOMString
|
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable. NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. |
speakNumeral
of
type DOMString
|
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable. NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. |
speakPunctuation
of type DOMString
|
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable. NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. |
speechRate
of type
DOMString
|
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable. NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. |
stress
of type
DOMString
|
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable. NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. |
tableLayout
of
type DOMString
|
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable. NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. |
textAlign
of type
DOMString
|
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable. NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. |
textDecoration
of type DOMString
|
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable. NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. |
textIndent
of type
DOMString
|
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable. NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. |
textShadow
of type
DOMString
|
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable. NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. |
textTransform
of
type DOMString
|
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable. NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. |
top
of type
DOMString
|
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable. NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. |
unicodeBidi
of
type DOMString
|
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable. NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. |
verticalAlign
of
type DOMString
|
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable. NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. |
visibility
of type
DOMString
|
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable. NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. |
voiceFamily
of
type DOMString
|
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable. NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. |
volume
of type
DOMString
|
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable. NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. |
whiteSpace
of type
DOMString
|
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable. NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. |
widows
of type
DOMString
|
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable. NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. |
width
of type
DOMString
|
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable. NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. |
wordSpacing
of
type DOMString
|
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable. NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. |
zIndex
of type
DOMString
|
SYNTAX_ERR: Raised if the new value has a syntax error and is unparsable. NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. |
This appendix contains the complete OMG IDL [OMGIDL] for the Level 2 Document Object Model Style definitions. The definitions are divided into Stylesheets and CSS.
The IDL files are also available as: http://www.w3.org/TR/2000/REC-DOM-Level-2-Style-20001113/idl.zip
// File: stylesheets.idl #ifndef _STYLESHEETS_IDL_ #define _STYLESHEETS_IDL_ #include "dom.idl" #pragma prefix "dom.w3c.org" module stylesheets { typedef dom::DOMString DOMString; typedef dom::Node Node; interface MediaList; // Introduced in DOM Level 2: interface StyleSheet { readonly attribute DOMString type; attribute boolean disabled; readonly attribute Node ownerNode; readonly attribute StyleSheet parentStyleSheet; readonly attribute DOMString href; readonly attribute DOMString title; readonly attribute MediaList media; }; // Introduced in DOM Level 2: interface StyleSheetList { readonly attribute unsigned long length; StyleSheet item(in unsigned long index); }; // Introduced in DOM Level 2: interface MediaList { attribute DOMString mediaText; // raises(dom::DOMException) on setting readonly attribute unsigned long length; DOMString item(in unsigned long index); void deleteMedium(in DOMString oldMedium) raises(dom::DOMException); void appendMedium(in DOMString newMedium) raises(dom::DOMException); }; // Introduced in DOM Level 2: interface LinkStyle { readonly attribute StyleSheet sheet; }; // Introduced in DOM Level 2: interface DocumentStyle { readonly attribute StyleSheetList styleSheets; }; }; #endif // _STYLESHEETS_IDL_
// File: css.idl #ifndef _CSS_IDL_ #define _CSS_IDL_ #include "dom.idl" #include "stylesheets.idl" #include "views.idl" #pragma prefix "dom.w3c.org" module css { typedef dom::DOMString DOMString; typedef dom::Element Element; typedef dom::DOMImplementation DOMImplementation; interface CSSRule; interface CSSStyleSheet; interface CSSStyleDeclaration; interface CSSValue; interface Counter; interface Rect; interface RGBColor; // Introduced in DOM Level 2: interface CSSRuleList { readonly attribute unsigned long length; CSSRule item(in unsigned long index); }; // 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(dom::DOMException) on setting readonly attribute CSSStyleSheet parentStyleSheet; readonly attribute CSSRule parentRule; }; // Introduced in DOM Level 2: interface CSSStyleRule : CSSRule { attribute DOMString selectorText; // raises(dom::DOMException) on setting readonly attribute CSSStyleDeclaration style; }; // 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(dom::DOMException); void deleteRule(in unsigned long index) raises(dom::DOMException); }; // Introduced in DOM Level 2: interface CSSFontFaceRule : CSSRule { readonly attribute CSSStyleDeclaration style; }; // Introduced in DOM Level 2: interface CSSPageRule : CSSRule { attribute DOMString selectorText; // raises(dom::DOMException) on setting readonly attribute CSSStyleDeclaration style; }; // Introduced in DOM Level 2: interface CSSImportRule : CSSRule { readonly attribute DOMString href; readonly attribute stylesheets::MediaList media; readonly attribute CSSStyleSheet styleSheet; }; // Introduced in DOM Level 2: interface CSSCharsetRule : CSSRule { attribute DOMString encoding; // raises(dom::DOMException) on setting }; // Introduced in DOM Level 2: interface CSSUnknownRule : CSSRule { }; // Introduced in DOM Level 2: interface CSSStyleDeclaration { attribute DOMString cssText; // raises(dom::DOMException) on setting DOMString getPropertyValue(in DOMString propertyName); CSSValue getPropertyCSSValue(in DOMString propertyName); DOMString removeProperty(in DOMString propertyName) raises(dom::DOMException); DOMString getPropertyPriority(in DOMString propertyName); void setProperty(in DOMString propertyName, in DOMString value, in DOMString priority) raises(dom::DOMException); readonly attribute unsigned long length; DOMString item(in unsigned long index); readonly attribute CSSRule parentRule; }; // 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(dom::DOMException) on setting readonly attribute unsigned short cssValueType; }; // 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(dom::DOMException); float getFloatValue(in unsigned short unitType) raises(dom::DOMException); void setStringValue(in unsigned short stringType, in DOMString stringValue) raises(dom::DOMException); DOMString getStringValue() raises(dom::DOMException); Counter getCounterValue() raises(dom::DOMException); Rect getRectValue() raises(dom::DOMException); RGBColor getRGBColorValue() raises(dom::DOMException); }; // Introduced in DOM Level 2: interface CSSValueList : CSSValue { readonly attribute unsigned long length; CSSValue item(in unsigned long index); }; // Introduced in DOM Level 2: interface RGBColor { readonly attribute CSSPrimitiveValue red; readonly attribute CSSPrimitiveValue green; readonly attribute CSSPrimitiveValue blue; }; // Introduced in DOM Level 2: interface Rect { readonly attribute CSSPrimitiveValue top; readonly attribute CSSPrimitiveValue right; readonly attribute CSSPrimitiveValue bottom; readonly attribute CSSPrimitiveValue left; }; // Introduced in DOM Level 2: interface Counter { readonly attribute DOMString identifier; readonly attribute DOMString listStyle; readonly attribute DOMString separator; }; // Introduced in DOM Level 2: interface ElementCSSInlineStyle { readonly attribute CSSStyleDeclaration style; }; // Introduced in DOM Level 2: interface CSS2Properties { attribute DOMString azimuth; // raises(dom::DOMException) on setting attribute DOMString background; // raises(dom::DOMException) on setting attribute DOMString backgroundAttachment; // raises(dom::DOMException) on setting attribute DOMString backgroundColor; // raises(dom::DOMException) on setting attribute DOMString backgroundImage; // raises(dom::DOMException) on setting attribute DOMString backgroundPosition; // raises(dom::DOMException) on setting attribute DOMString backgroundRepeat; // raises(dom::DOMException) on setting attribute DOMString border; // raises(dom::DOMException) on setting attribute DOMString borderCollapse; // raises(dom::DOMException) on setting attribute DOMString borderColor; // raises(dom::DOMException) on setting attribute DOMString borderSpacing; // raises(dom::DOMException) on setting attribute DOMString borderStyle; // raises(dom::DOMException) on setting attribute DOMString borderTop; // raises(dom::DOMException) on setting attribute DOMString borderRight; // raises(dom::DOMException) on setting attribute DOMString borderBottom; // raises(dom::DOMException) on setting attribute DOMString borderLeft; // raises(dom::DOMException) on setting attribute DOMString borderTopColor; // raises(dom::DOMException) on setting attribute DOMString borderRightColor; // raises(dom::DOMException) on setting attribute DOMString borderBottomColor; // raises(dom::DOMException) on setting attribute DOMString borderLeftColor; // raises(dom::DOMException) on setting attribute DOMString borderTopStyle; // raises(dom::DOMException) on setting attribute DOMString borderRightStyle; // raises(dom::DOMException) on setting attribute DOMString borderBottomStyle; // raises(dom::DOMException) on setting attribute DOMString borderLeftStyle; // raises(dom::DOMException) on setting attribute DOMString borderTopWidth; // raises(dom::DOMException) on setting attribute DOMString borderRightWidth; // raises(dom::DOMException) on setting attribute DOMString borderBottomWidth; // raises(dom::DOMException) on setting attribute DOMString borderLeftWidth; // raises(dom::DOMException) on setting attribute DOMString borderWidth; // raises(dom::DOMException) on setting attribute DOMString bottom; // raises(dom::DOMException) on setting attribute DOMString captionSide; // raises(dom::DOMException) on setting attribute DOMString clear; // raises(dom::DOMException) on setting attribute DOMString clip; // raises(dom::DOMException) on setting attribute DOMString color; // raises(dom::DOMException) on setting attribute DOMString content; // raises(dom::DOMException) on setting attribute DOMString counterIncrement; // raises(dom::DOMException) on setting attribute DOMString counterReset; // raises(dom::DOMException) on setting attribute DOMString cue; // raises(dom::DOMException) on setting attribute DOMString cueAfter; // raises(dom::DOMException) on setting attribute DOMString cueBefore; // raises(dom::DOMException) on setting attribute DOMString cursor; // raises(dom::DOMException) on setting attribute DOMString direction; // raises(dom::DOMException) on setting attribute DOMString display; // raises(dom::DOMException) on setting attribute DOMString elevation; // raises(dom::DOMException) on setting attribute DOMString emptyCells; // raises(dom::DOMException) on setting attribute DOMString cssFloat; // raises(dom::DOMException) on setting attribute DOMString font; // raises(dom::DOMException) on setting attribute DOMString fontFamily; // raises(dom::DOMException) on setting attribute DOMString fontSize; // raises(dom::DOMException) on setting attribute DOMString fontSizeAdjust; // raises(dom::DOMException) on setting attribute DOMString fontStretch; // raises(dom::DOMException) on setting attribute DOMString fontStyle; // raises(dom::DOMException) on setting attribute DOMString fontVariant; // raises(dom::DOMException) on setting attribute DOMString fontWeight; // raises(dom::DOMException) on setting attribute DOMString height; // raises(dom::DOMException) on setting attribute DOMString left; // raises(dom::DOMException) on setting attribute DOMString letterSpacing; // raises(dom::DOMException) on setting attribute DOMString lineHeight; // raises(dom::DOMException) on setting attribute DOMString listStyle; // raises(dom::DOMException) on setting attribute DOMString listStyleImage; // raises(dom::DOMException) on setting attribute DOMString listStylePosition; // raises(dom::DOMException) on setting attribute DOMString listStyleType; // raises(dom::DOMException) on setting attribute DOMString margin; // raises(dom::DOMException) on setting attribute DOMString marginTop; // raises(dom::DOMException) on setting attribute DOMString marginRight; // raises(dom::DOMException) on setting attribute DOMString marginBottom; // raises(dom::DOMException) on setting attribute DOMString marginLeft; // raises(dom::DOMException) on setting attribute DOMString markerOffset; // raises(dom::DOMException) on setting attribute DOMString marks; // raises(dom::DOMException) on setting attribute DOMString maxHeight; // raises(dom::DOMException) on setting attribute DOMString maxWidth; // raises(dom::DOMException) on setting attribute DOMString minHeight; // raises(dom::DOMException) on setting attribute DOMString minWidth; // raises(dom::DOMException) on setting attribute DOMString orphans; // raises(dom::DOMException) on setting attribute DOMString outline; // raises(dom::DOMException) on setting attribute DOMString outlineColor; // raises(dom::DOMException) on setting attribute DOMString outlineStyle; // raises(dom::DOMException) on setting attribute DOMString outlineWidth; // raises(dom::DOMException) on setting attribute DOMString overflow; // raises(dom::DOMException) on setting attribute DOMString padding; // raises(dom::DOMException) on setting attribute DOMString paddingTop; // raises(dom::DOMException) on setting attribute DOMString paddingRight; // raises(dom::DOMException) on setting attribute DOMString paddingBottom; // raises(dom::DOMException) on setting attribute DOMString paddingLeft; // raises(dom::DOMException) on setting attribute DOMString page; // raises(dom::DOMException) on setting attribute DOMString pageBreakAfter; // raises(dom::DOMException) on setting attribute DOMString pageBreakBefore; // raises(dom::DOMException) on setting attribute DOMString pageBreakInside; // raises(dom::DOMException) on setting attribute DOMString pause; // raises(dom::DOMException) on setting attribute DOMString pauseAfter; // raises(dom::DOMException) on setting attribute DOMString pauseBefore; // raises(dom::DOMException) on setting attribute DOMString pitch; // raises(dom::DOMException) on setting attribute DOMString pitchRange; // raises(dom::DOMException) on setting attribute DOMString playDuring; // raises(dom::DOMException) on setting attribute DOMString position; // raises(dom::DOMException) on setting attribute DOMString quotes; // raises(dom::DOMException) on setting attribute DOMString richness; // raises(dom::DOMException) on setting attribute DOMString right; // raises(dom::DOMException) on setting attribute DOMString size; // raises(dom::DOMException) on setting attribute DOMString speak; // raises(dom::DOMException) on setting attribute DOMString speakHeader; // raises(dom::DOMException) on setting attribute DOMString speakNumeral; // raises(dom::DOMException) on setting attribute DOMString speakPunctuation; // raises(dom::DOMException) on setting attribute DOMString speechRate; // raises(dom::DOMException) on setting attribute DOMString stress; // raises(dom::DOMException) on setting attribute DOMString tableLayout; // raises(dom::DOMException) on setting attribute DOMString textAlign; // raises(dom::DOMException) on setting attribute DOMString textDecoration; // raises(dom::DOMException) on setting attribute DOMString textIndent; // raises(dom::DOMException) on setting attribute DOMString textShadow; // raises(dom::DOMException) on setting attribute DOMString textTransform; // raises(dom::DOMException) on setting attribute DOMString top; // raises(dom::DOMException) on setting attribute DOMString unicodeBidi; // raises(dom::DOMException) on setting attribute DOMString verticalAlign; // raises(dom::DOMException) on setting attribute DOMString visibility; // raises(dom::DOMException) on setting attribute DOMString voiceFamily; // raises(dom::DOMException) on setting attribute DOMString volume; // raises(dom::DOMException) on setting attribute DOMString whiteSpace; // raises(dom::DOMException) on setting attribute DOMString widows; // raises(dom::DOMException) on setting attribute DOMString width; // raises(dom::DOMException) on setting attribute DOMString wordSpacing; // raises(dom::DOMException) on setting attribute DOMString zIndex; // raises(dom::DOMException) on setting }; // 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(dom::DOMException); void deleteRule(in unsigned long index) raises(dom::DOMException); }; // Introduced in DOM Level 2: interface ViewCSS : views::AbstractView { CSSStyleDeclaration getComputedStyle(in Element elt, in DOMString pseudoElt); }; // Introduced in DOM Level 2: interface DocumentCSS : stylesheets::DocumentStyle { CSSStyleDeclaration getOverrideStyle(in Element elt, in DOMString pseudoElt); }; // Introduced in DOM Level 2: interface DOMImplementationCSS : DOMImplementation { CSSStyleSheet createCSSStyleSheet(in DOMString title, in DOMString media) raises(dom::DOMException); }; }; #endif // _CSS_IDL_
This appendix contains the complete Java Language [Java] binding for the Level 2 Document Object Model Style. The definitions are divided into StyleSheets and CSS.
The Java files are also available as http://www.w3.org/TR/2000/REC-DOM-Level-2-Style-20001113/java-binding.zip
package org.w3c.dom.stylesheets; import org.w3c.dom.Node; public interface StyleSheet { public String getType(); public boolean getDisabled(); public void setDisabled(boolean disabled); public Node getOwnerNode(); public StyleSheet getParentStyleSheet(); public String getHref(); public String getTitle(); public MediaList getMedia(); }
package org.w3c.dom.stylesheets; public interface StyleSheetList { public int getLength(); public StyleSheet item(int index); }
package org.w3c.dom.stylesheets; import org.w3c.dom.DOMException; public interface MediaList { public String getMediaText(); public void setMediaText(String mediaText) throws DOMException; public int getLength(); public String item(int index); public void deleteMedium(String oldMedium) throws DOMException; public void appendMedium(String newMedium) throws DOMException; }
package org.w3c.dom.stylesheets; public interface LinkStyle { public StyleSheet getSheet(); }
package org.w3c.dom.stylesheets; public interface DocumentStyle { public StyleSheetList getStyleSheets(); }
package org.w3c.dom.css; import org.w3c.dom.DOMException; import org.w3c.dom.stylesheets.StyleSheet; public interface CSSStyleSheet extends StyleSheet { public CSSRule getOwnerRule(); public CSSRuleList getCssRules(); public int insertRule(String rule, int index) throws DOMException; public void deleteRule(int index) throws DOMException; }
package org.w3c.dom.css; public interface CSSRuleList { public int getLength(); public CSSRule item(int index); }
package org.w3c.dom.css; import org.w3c.dom.DOMException; public interface CSSRule { // RuleType public static final short UNKNOWN_RULE = 0; public static final short STYLE_RULE = 1; public static final short CHARSET_RULE = 2; public static final short IMPORT_RULE = 3; public static final short MEDIA_RULE = 4; public static final short FONT_FACE_RULE = 5; public static final short PAGE_RULE = 6; public short getType(); public String getCssText(); public void setCssText(String cssText) throws DOMException; public CSSStyleSheet getParentStyleSheet(); public CSSRule getParentRule(); }
package org.w3c.dom.css; import org.w3c.dom.DOMException; public interface CSSStyleRule extends CSSRule { public String getSelectorText(); public void setSelectorText(String selectorText) throws DOMException; public CSSStyleDeclaration getStyle(); }
package org.w3c.dom.css; import org.w3c.dom.DOMException; import org.w3c.dom.stylesheets.MediaList; public interface CSSMediaRule extends CSSRule { public MediaList getMedia(); public CSSRuleList getCssRules(); public int insertRule(String rule, int index) throws DOMException; public void deleteRule(int index) throws DOMException; }
package org.w3c.dom.css; public interface CSSFontFaceRule extends CSSRule { public CSSStyleDeclaration getStyle(); }
package org.w3c.dom.css; import org.w3c.dom.DOMException; public interface CSSPageRule extends CSSRule { public String getSelectorText(); public void setSelectorText(String selectorText) throws DOMException; public CSSStyleDeclaration getStyle(); }
package org.w3c.dom.css; import org.w3c.dom.stylesheets.MediaList; public interface CSSImportRule extends CSSRule { public String getHref(); public MediaList getMedia(); public CSSStyleSheet getStyleSheet(); }
package org.w3c.dom.css; import org.w3c.dom.DOMException; public interface CSSCharsetRule extends CSSRule { public String getEncoding(); public void setEncoding(String encoding) throws DOMException; }
package org.w3c.dom.css; public interface CSSUnknownRule extends CSSRule { }
package org.w3c.dom.css; import org.w3c.dom.DOMException; public interface CSSStyleDeclaration { public String getCssText(); public void setCssText(String cssText) throws DOMException; public String getPropertyValue(String propertyName); public CSSValue getPropertyCSSValue(String propertyName); public String removeProperty(String propertyName) throws DOMException; public String getPropertyPriority(String propertyName); public void setProperty(String propertyName, String value, String priority) throws DOMException; public int getLength(); public String item(int index); public CSSRule getParentRule(); }
package org.w3c.dom.css; import org.w3c.dom.DOMException; public interface CSSValue { // UnitTypes public static final short CSS_INHERIT = 0; public static final short CSS_PRIMITIVE_VALUE = 1; public static final short CSS_VALUE_LIST = 2; public static final short CSS_CUSTOM = 3; public String getCssText(); public void setCssText(String cssText) throws DOMException; public short getCssValueType(); }
package org.w3c.dom.css; import org.w3c.dom.DOMException; public interface CSSPrimitiveValue extends CSSValue { // UnitTypes public static final short CSS_UNKNOWN = 0; public static final short CSS_NUMBER = 1; public static final short CSS_PERCENTAGE = 2; public static final short CSS_EMS = 3; public static final short CSS_EXS = 4; public static final short CSS_PX = 5; public static final short CSS_CM = 6; public static final short CSS_MM = 7; public static final short CSS_IN = 8; public static final short CSS_PT = 9; public static final short CSS_PC = 10; public static final short CSS_DEG = 11; public static final short CSS_RAD = 12; public static final short CSS_GRAD = 13; public static final short CSS_MS = 14; public static final short CSS_S = 15; public static final short CSS_HZ = 16; public static final short CSS_KHZ = 17; public static final short CSS_DIMENSION = 18; public static final short CSS_STRING = 19; public static final short CSS_URI = 20; public static final short CSS_IDENT = 21; public static final short CSS_ATTR = 22; public static final short CSS_COUNTER = 23; public static final short CSS_RECT = 24; public static final short CSS_RGBCOLOR = 25; public short getPrimitiveType(); public void setFloatValue(short unitType, float floatValue) throws DOMException; public float getFloatValue(short unitType) throws DOMException; public void setStringValue(short stringType, String stringValue) throws DOMException; public String getStringValue() throws DOMException; public Counter getCounterValue() throws DOMException; public Rect getRectValue() throws DOMException; public RGBColor getRGBColorValue() throws DOMException; }
package org.w3c.dom.css; public interface CSSValueList extends CSSValue { public int getLength(); public CSSValue item(int index); }
package org.w3c.dom.css; public interface RGBColor { public CSSPrimitiveValue getRed(); public CSSPrimitiveValue getGreen(); public CSSPrimitiveValue getBlue(); }
package org.w3c.dom.css; public interface Rect { public CSSPrimitiveValue getTop(); public CSSPrimitiveValue getRight(); public CSSPrimitiveValue getBottom(); public CSSPrimitiveValue getLeft(); }
package org.w3c.dom.css; public interface Counter { public String getIdentifier(); public String getListStyle(); public String getSeparator(); }
package org.w3c.dom.css; import org.w3c.dom.views.AbstractView; import org.w3c.dom.Element; public interface ViewCSS extends AbstractView { public CSSStyleDeclaration getComputedStyle(Element elt, String pseudoElt); }
package org.w3c.dom.css; import org.w3c.dom.stylesheets.DocumentStyle; import org.w3c.dom.Element; public interface DocumentCSS extends DocumentStyle { public CSSStyleDeclaration getOverrideStyle(Element elt, String pseudoElt); }
package org.w3c.dom.css; import org.w3c.dom.DOMImplementation; import org.w3c.dom.DOMException; public interface DOMImplementationCSS extends DOMImplementation { public CSSStyleSheet createCSSStyleSheet(String title, String media) throws DOMException; }
package org.w3c.dom.css; public interface ElementCSSInlineStyle { public CSSStyleDeclaration getStyle(); }
package org.w3c.dom.css; import org.w3c.dom.DOMException; public interface CSS2Properties { public String getAzimuth(); public void setAzimuth(String azimuth) throws DOMException; public String getBackground(); public void setBackground(String background) throws DOMException; public String getBackgroundAttachment(); public void setBackgroundAttachment(String backgroundAttachment) throws DOMException; public String getBackgroundColor(); public void setBackgroundColor(String backgroundColor) throws DOMException; public String getBackgroundImage(); public void setBackgroundImage(String backgroundImage) throws DOMException; public String getBackgroundPosition(); public void setBackgroundPosition(String backgroundPosition) throws DOMException; public String getBackgroundRepeat(); public void setBackgroundRepeat(String backgroundRepeat) throws DOMException; public String getBorder(); public void setBorder(String border) throws DOMException; public String getBorderCollapse(); public void setBorderCollapse(String borderCollapse) throws DOMException; public String getBorderColor(); public void setBorderColor(String borderColor) throws DOMException; public String getBorderSpacing(); public void setBorderSpacing(String borderSpacing) throws DOMException; public String getBorderStyle(); public void setBorderStyle(String borderStyle) throws DOMException; public String getBorderTop(); public void setBorderTop(String borderTop) throws DOMException; public String getBorderRight(); public void setBorderRight(String borderRight) throws DOMException; public String getBorderBottom(); public void setBorderBottom(String borderBottom) throws DOMException; public String getBorderLeft(); public void setBorderLeft(String borderLeft) throws DOMException; public String getBorderTopColor(); public void setBorderTopColor(String borderTopColor) throws DOMException; public String getBorderRightColor(); public void setBorderRightColor(String borderRightColor) throws DOMException; public String getBorderBottomColor(); public void setBorderBottomColor(String borderBottomColor) throws DOMException; public String getBorderLeftColor(); public void setBorderLeftColor(String borderLeftColor) throws DOMException; public String getBorderTopStyle(); public void setBorderTopStyle(String borderTopStyle) throws DOMException; public String getBorderRightStyle(); public void setBorderRightStyle(String borderRightStyle) throws DOMException; public String getBorderBottomStyle(); public void setBorderBottomStyle(String borderBottomStyle) throws DOMException; public String getBorderLeftStyle(); public void setBorderLeftStyle(String borderLeftStyle) throws DOMException; public String getBorderTopWidth(); public void setBorderTopWidth(String borderTopWidth) throws DOMException; public String getBorderRightWidth(); public void setBorderRightWidth(String borderRightWidth) throws DOMException; public String getBorderBottomWidth(); public void setBorderBottomWidth(String borderBottomWidth) throws DOMException; public String getBorderLeftWidth(); public void setBorderLeftWidth(String borderLeftWidth) throws DOMException; public String getBorderWidth(); public void setBorderWidth(String borderWidth) throws DOMException; public String getBottom(); public void setBottom(String bottom) throws DOMException; public String getCaptionSide(); public void setCaptionSide(String captionSide) throws DOMException; public String getClear(); public void setClear(String clear) throws DOMException; public String getClip(); public void setClip(String clip) throws DOMException; public String getColor(); public void setColor(String color) throws DOMException; public String getContent(); public void setContent(String content) throws DOMException; public String getCounterIncrement(); public void setCounterIncrement(String counterIncrement) throws DOMException; public String getCounterReset(); public void setCounterReset(String counterReset) throws DOMException; public String getCue(); public void setCue(String cue) throws DOMException; public String getCueAfter(); public void setCueAfter(String cueAfter) throws DOMException; public String getCueBefore(); public void setCueBefore(String cueBefore) throws DOMException; public String getCursor(); public void setCursor(String cursor) throws DOMException; public String getDirection(); public void setDirection(String direction) throws DOMException; public String getDisplay(); public void setDisplay(String display) throws DOMException; public String getElevation(); public void setElevation(String elevation) throws DOMException; public String getEmptyCells(); public void setEmptyCells(String emptyCells) throws DOMException; public String getCssFloat(); public void setCssFloat(String cssFloat) throws DOMException; public String getFont(); public void setFont(String font) throws DOMException; public String getFontFamily(); public void setFontFamily(String fontFamily) throws DOMException; public String getFontSize(); public void setFontSize(String fontSize) throws DOMException; public String getFontSizeAdjust(); public void setFontSizeAdjust(String fontSizeAdjust) throws DOMException; public String getFontStretch(); public void setFontStretch(String fontStretch) throws DOMException; public String getFontStyle(); public void setFontStyle(String fontStyle) throws DOMException; public String getFontVariant(); public void setFontVariant(String fontVariant) throws DOMException; public String getFontWeight(); public void setFontWeight(String fontWeight) throws DOMException; public String getHeight(); public void setHeight(String height) throws DOMException; public String getLeft(); public void setLeft(String left) throws DOMException; public String getLetterSpacing(); public void setLetterSpacing(String letterSpacing) throws DOMException; public String getLineHeight(); public void setLineHeight(String lineHeight) throws DOMException; public String getListStyle(); public void setListStyle(String listStyle) throws DOMException; public String getListStyleImage(); public void setListStyleImage(String listStyleImage) throws DOMException; public String getListStylePosition(); public void setListStylePosition(String listStylePosition) throws DOMException; public String getListStyleType(); public void setListStyleType(String listStyleType) throws DOMException; public String getMargin(); public void setMargin(String margin) throws DOMException; public String getMarginTop(); public void setMarginTop(String marginTop) throws DOMException; public String getMarginRight(); public void setMarginRight(String marginRight) throws DOMException; public String getMarginBottom(); public void setMarginBottom(String marginBottom) throws DOMException; public String getMarginLeft(); public void setMarginLeft(String marginLeft) throws DOMException; public String getMarkerOffset(); public void setMarkerOffset(String markerOffset) throws DOMException; public String getMarks(); public void setMarks(String marks) throws DOMException; public String getMaxHeight(); public void setMaxHeight(String maxHeight) throws DOMException; public String getMaxWidth(); public void setMaxWidth(String maxWidth) throws DOMException; public String getMinHeight(); public void setMinHeight(String minHeight) throws DOMException; public String getMinWidth(); public void setMinWidth(String minWidth) throws DOMException; public String getOrphans(); public void setOrphans(String orphans) throws DOMException; public String getOutline(); public void setOutline(String outline) throws DOMException; public String getOutlineColor(); public void setOutlineColor(String outlineColor) throws DOMException; public String getOutlineStyle(); public void setOutlineStyle(String outlineStyle) throws DOMException; public String getOutlineWidth(); public void setOutlineWidth(String outlineWidth) throws DOMException; public String getOverflow(); public void setOverflow(String overflow) throws DOMException; public String getPadding(); public void setPadding(String padding) throws DOMException; public String getPaddingTop(); public void setPaddingTop(String paddingTop) throws DOMException; public String getPaddingRight(); public void setPaddingRight(String paddingRight) throws DOMException; public String getPaddingBottom(); public void setPaddingBottom(String paddingBottom) throws DOMException; public String getPaddingLeft(); public void setPaddingLeft(String paddingLeft) throws DOMException; public String getPage(); public void setPage(String page) throws DOMException; public String getPageBreakAfter(); public void setPageBreakAfter(String pageBreakAfter) throws DOMException; public String getPageBreakBefore(); public void setPageBreakBefore(String pageBreakBefore) throws DOMException; public String getPageBreakInside(); public void setPageBreakInside(String pageBreakInside) throws DOMException; public String getPause(); public void setPause(String pause) throws DOMException; public String getPauseAfter(); public void setPauseAfter(String pauseAfter) throws DOMException; public String getPauseBefore(); public void setPauseBefore(String pauseBefore) throws DOMException; public String getPitch(); public void setPitch(String pitch) throws DOMException; public String getPitchRange(); public void setPitchRange(String pitchRange) throws DOMException; public String getPlayDuring(); public void setPlayDuring(String playDuring) throws DOMException; public String getPosition(); public void setPosition(String position) throws DOMException; public String getQuotes(); public void setQuotes(String quotes) throws DOMException; public String getRichness(); public void setRichness(String richness) throws DOMException; public String getRight(); public void setRight(String right) throws DOMException; public String getSize(); public void setSize(String size) throws DOMException; public String getSpeak(); public void setSpeak(String speak) throws DOMException; public String getSpeakHeader(); public void setSpeakHeader(String speakHeader) throws DOMException; public String getSpeakNumeral(); public void setSpeakNumeral(String speakNumeral) throws DOMException; public String getSpeakPunctuation(); public void setSpeakPunctuation(String speakPunctuation) throws DOMException; public String getSpeechRate(); public void setSpeechRate(String speechRate) throws DOMException; public String getStress(); public void setStress(String stress) throws DOMException; public String getTableLayout(); public void setTableLayout(String tableLayout) throws DOMException; public String getTextAlign(); public void setTextAlign(String textAlign) throws DOMException; public String getTextDecoration(); public void setTextDecoration(String textDecoration) throws DOMException; public String getTextIndent(); public void setTextIndent(String textIndent) throws DOMException; public String getTextShadow(); public void setTextShadow(String textShadow) throws DOMException; public String getTextTransform(); public void setTextTransform(String textTransform) throws DOMException; public String getTop(); public void setTop(String top) throws DOMException; public String getUnicodeBidi(); public void setUnicodeBidi(String unicodeBidi) throws DOMException; public String getVerticalAlign(); public void setVerticalAlign(String verticalAlign) throws DOMException; public String getVisibility(); public void setVisibility(String visibility) throws DOMException; public String getVoiceFamily(); public void setVoiceFamily(String voiceFamily) throws DOMException; public String getVolume(); public void setVolume(String volume) throws DOMException; public String getWhiteSpace(); public void setWhiteSpace(String whiteSpace) throws DOMException; public String getWidows(); public void setWidows(String widows) throws DOMException; public String getWidth(); public void setWidth(String width) throws DOMException; public String getWordSpacing(); public void setWordSpacing(String wordSpacing) throws DOMException; public String getZIndex(); public void setZIndex(String zIndex) throws DOMException; }
This appendix contains the complete ECMAScript [ECMAScript] binding for the Level 2 Document Object Model Style definitions. The definitions are divided into StyleSheets and CSS.
Note: Exceptions handling is only supported by ECMAScript implementation conformant with the Standard ECMA-262 3rd. Edition ([ECMAScript]).
Many people contributed to this specification, including members of the DOM Working Group and the DOM Interest Group. We especially thank the following:
Lauren Wood (SoftQuad Software Inc., chair), Andrew Watson (Object Management Group), Andy Heninger (IBM), Arnaud Le Hors (W3C and IBM), Ben Chang (Oracle), Bill Smith (Sun), Bill Shea (Merrill Lynch), Bob Sutor (IBM), Chris Lovett (Microsoft), Chris Wilson (Microsoft), David Brownell (Sun), David Singer (IBM), Don Park (invited), Eric Vasilik (Microsoft), Gavin Nicol (INSO), Ian Jacobs (W3C), James Clark (invited), James Davidson (Sun), Jared Sorensen (Novell), Joe Kesselman (IBM), Joe Lapp (webMethods), Joe Marini (Macromedia), Johnny Stenback (Netscape), Jonathan Marsh (Microsoft), Jonathan Robie (Texcel Research and Software AG), Kim Adamson-Sharpe (SoftQuad Software Inc.), Laurence Cable (Sun), Mark Davis (IBM), Mark Scardina (Oracle), Martin Dürst (W3C), Mick Goulish (Software AG), Mike Champion (Arbortext and Software AG), Miles Sabin (Cromwell Media), Patti Lutsky (Arbortext), Paul Grosso (Arbortext), Peter Sharpe (SoftQuad Software Inc.), Phil Karlton (Netscape), Philippe Le Hégaret (W3C, W3C team contact), Ramesh Lekshmynarayanan (Merrill Lynch), Ray Whitmer (iMall, Excite@Home and Netscape), Rich Rollman (Microsoft), Rick Gessner (Netscape), Scott Isaacs (Microsoft), Sharon Adler (INSO), Steve Byrne (JavaSoft), Tim Bray (invited), Tom Pixley (Netscape), Vidur Apparao (Netscape), Vinod Anupam (Lucent).
Thanks to all those who have helped to improve this specification by sending suggestions and corrections.
This specification was written in XML. The HTML, OMG IDL, Java and ECMA Script bindings were all produced automatically.
Thanks to Joe English, author of cost, which was used as the basis for producing DOM Level 1. Thanks also to Gavin Nicol, who wrote the scripts which run on top of cost. Arnaud Le Hors and Philippe Le Hégaret maintained the scripts.
For DOM Level 2, we used Xerces as the basis DOM implementation and wish to thank the authors. Philippe Le Hégaret and Arnaud Le Hors wrote the Java programs which are the DOM application.
Thanks also to Jan Kärrman, author of html2ps, which we use in creating the PostScript version of the specification.
For the latest version of any W3C specification please consult the list of W3C Technical Reports available at http://www.w3.org/TR.