Results 1 - 9 of 9

CSSPrimitiveValue

The CSSPrimitiveValue interface derives from the CSSValue interface and represents the current computed value of a CSS property.
API CSSPrimitiveValue Interface NeedsBrowserCompatibility NeedsMobileBrowserCompatibility Reference

CSSPrimitiveValue.getCounterValue()

The getCounterValue() method of the CSSPrimitiveValue interface is used to get the counter value. If this CSS value doesn't contain a counter value, a DOMException is raised. Modification to the corresponding style property can be achieved using the Counter interface.
API CSSPrimitiveValue getCounterValue Method NeedsBrowserCompatibility NeedsExample NeedsMobileBrowserCompatibility

CSSPrimitiveValue.getFloatValue()

The getFloatValue() method of the CSSPrimitiveValue interface is used to get a float value in a specified unit. If this CSS value doesn't contain a float value or can't be converted into the specified unit, a DOMException is raised.
API CSSPrimitiveValue getFloatValue Method NeedsBrowserCompatibility NeedsMobileBrowserCompatibility

CSSPrimitiveValue.getRectValue()

The getRectValue() method of the CSSPrimitiveValue interface is used to get a rect value. If this CSS value doesn't contain a rect value, a DOMException is raised. Modification to the corresponding style property can be achieved using the Rect interface.
API CSSPrimitiveValue getRectValue Method NeedsBrowserCompatibility NeedsMobileBrowserCompatibility

CSSPrimitiveValue.getRGBColorValue()

The getRGBColorValue() method of the CSSPrimitiveValue interface is used to get an RGB color value. If this CSS value doesn't contain a RGB color value, a DOMException is raised. Modification to the corresponding style property can be achieved using the RGBColor interface.
API CSSPrimitiveValue getRGBColorValue Method NeedsBrowserCompatibility NeedsMobileBrowserCompatibility

CSSPrimitiveValue.getStringValue()

The getStringValue() method of the CSSPrimitiveValue interface is used to get a string value. If this CSS value doesn't contain a string value, a DOMException is raised.
API CSSPrimitiveValue getStringValue Method NeedsBrowserCompatibility NeedsMobileBrowserCompatibility

CSSPrimitiveValue.setFloatValue()

The setFloatValue() method of the CSSPrimitiveValue interface is used to set a float value. If the property attached to this value can't accept the specified unit or the float value, the value will be unchanged and a DOMException will be raised.
API CSSPrimitiveValue Method NeedsBrowserCompatibility NeedsExample NeedsMobileBrowserCompatibility setFloatValue

CSSPrimitiveValue.setStringValue()

The setStringValue() method of the CSSPrimitiveValue interface is used to set a string value. If the property attached to this value can't accept the specified unit or the string value, the value will be unchanged and a DOMException will be raised.
API CSSPrimitiveValue Method NeedsBrowserCompatibility NeedsExample NeedsMobileBrowserCompatibility setStringValue