getRGBColorValue
(method
)
Owning interface and usage:
CSSPrimitiveValue.
getRGBColorValue()
Member of these other interfaces:
none
Description:
This method is used to get the RGB color. If this CSS value doesn't contain a RGB color value, a DOMException is raised. Modification to the corresponding style property can be achieved using the RGBColor interface.
Parameters:
none
Returns:
RGBColor -
the RGB color value.
Exceptions:
- DOMException INVALID_ACCESS_ERR
-
Raised if the attached property can't return a RGB color value (e.g. this is not CSS_RGBCOLOR).