CSSPrimitiveValue

This object is available to unprivileged JavaScript. It implements the following interfaces:

Constants

The nsIDOMCSSPrimitiveValue interface is a datatype for a primitive CSS value in the Document Object Model.

For more information on this interface please see http://www.w3.org/TR/DOM-Level-2-Style

short CSS_UNKNOWN = 0
short CSS_NUMBER = 1
short CSS_PERCENTAGE = 2
short CSS_EMS = 3
short CSS_EXS = 4
short CSS_PX = 5
short CSS_CM = 6
short CSS_MM = 7
short CSS_IN = 8
short CSS_PT = 9
short CSS_PC = 10
short CSS_DEG = 11
short CSS_RAD = 12
short CSS_GRAD = 13
short CSS_MS = 14
short CSS_S = 15
short CSS_HZ = 16
short CSS_KHZ = 17
short CSS_DIMENSION = 18
short CSS_STRING = 19
short CSS_URI = 20
short CSS_IDENT = 21
short CSS_ATTR = 22
short CSS_COUNTER = 23
short CSS_RECT = 24
short CSS_RGBCOLOR = 25
The nsIDOMCSSValue interface is a datatype for a CSS value in the Document Object Model.

For more information on this interface please see http://www.w3.org/TR/DOM-Level-2-Style

short CSS_INHERIT = 0
short CSS_PRIMITIVE_VALUE = 1
short CSS_VALUE_LIST = 2
short CSS_CUSTOM = 3

Properties

String cssText

readonly short cssValueType

readonly short primitiveType


Methods

Counter getCounterValue ( ) float getFloatValue ( short unitType ) Rect getRectValue ( ) CSSRGBColor getRGBColorValue ( ) String getStringValue ( ) void setFloatValue ( short unitType , float floatValue ) void setStringValue ( short stringType , String stringValue )

Counter getCounterValue ( )


float getFloatValue ( short unitType )

Arguments:
unitType

Rect getRectValue ( )


CSSRGBColor getRGBColorValue ( )


String getStringValue ( )


void setFloatValue ( short unitType , float floatValue )

Arguments:
unitType
floatValue

void setStringValue ( short stringType , String stringValue )

Arguments:
stringType
stringValue

Reference documentation is generated from Mozilla's source.

Add a note User Contributed Notes
No comments available

Copyright © 1999 - 2005 XULPlanet.com