CSSPrimitiveValue in DOM Level 2 CSS

(no overview available)

Inherits from:

Instance Properties

name type description
cssText String [from CSSValue]
cssValueType Number (read only) [from CSSValue]
primitiveType Number (read only)

Instance Methods

name returns description
getCounterValue() Counter
getFloatValue(unitType) Number
getRectValue() Rect
getRGBColorValue() RGBColor
getStringValue() String
setFloatValue(unitType,floatValue) (none)
setStringValue(stringType,stringValue) (none)

Constants

name object value description
CSS_UNKNOWN CSSPrimitiveValue 0
CSS_NUMBER CSSPrimitiveValue 1
CSS_PERCENTAGE CSSPrimitiveValue 2
CSS_EMS CSSPrimitiveValue 3
CSS_EXS CSSPrimitiveValue 4
CSS_PX CSSPrimitiveValue 5
CSS_CM CSSPrimitiveValue 6
CSS_MM CSSPrimitiveValue 7
CSS_IN CSSPrimitiveValue 8
CSS_PT CSSPrimitiveValue 9
CSS_PC CSSPrimitiveValue 10
CSS_DEG CSSPrimitiveValue 11
CSS_RAD CSSPrimitiveValue 12
CSS_GRAD CSSPrimitiveValue 13
CSS_MS CSSPrimitiveValue 14
CSS_S CSSPrimitiveValue 15
CSS_HZ CSSPrimitiveValue 16
CSS_KHZ CSSPrimitiveValue 17
CSS_DIMENSION CSSPrimitiveValue 18
CSS_STRING CSSPrimitiveValue 19
CSS_URI CSSPrimitiveValue 20
CSS_IDENT CSSPrimitiveValue 21
CSS_ATTR CSSPrimitiveValue 22
CSS_COUNTER CSSPrimitiveValue 23
CSS_RECT CSSPrimitiveValue 24
CSS_RGBCOLOR CSSPrimitiveValue 25

Properties that are a CSSPrimitiveValue

name object description
blue RGBColor (read only)
bottom Rect (read only)
green RGBColor (read only)
left Rect (read only)
red RGBColor (read only)
right Rect (read only)
top Rect (read only)