<?xml version="1.0" encoding="utf-8"?> <!-- RGBColor interface --> <interface id="CSS-RGBColor" name="RGBColor" since="DOM Level 2"> <descr> <p> The <code>RGBColor</code> interface is used to represent any <xspecref href="&css2;/syndata.html#value-def-color">RGB color</xspecref> value. This interface reflects the values in the underlying style property. Hence, modifications made to the <code>CSSPrimitiveValue</code> objects modify the style property. </p> <p> 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. </p> <p> 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. </p> <p> A color percentage value can always be converted to a number and vice versa. </p> </descr> <attribute id="CSS-RGBColor-red" name="red" type="CSSPrimitiveValue" readonly="yes"> <descr> <p> This attribute is used for the red value of the RGB color. </p> </descr> </attribute> <attribute id="CSS-RGBColor-green" name="green" type="CSSPrimitiveValue" readonly="yes"> <descr> <p> This attribute is used for the green value of the RGB color. </p> </descr> </attribute> <attribute id="CSS-RGBColor-blue" name="blue" type="CSSPrimitiveValue" readonly="yes"> <descr> <p> This attribute is used for the blue value of the RGB color. </p> </descr> </attribute> </interface>