CSSPrimitiveValue value(50, CSSPrimitiveValue::UnitType::CSS_PX); int valueType = value.getValueID();
CSSPrimitiveValue value(Color::black); int valueType = value.getValueID();In this example, a new CSSPrimitiveValue object is created with a black color value. The getValueID() method is then used to retrieve the integer value representing a color type. Package library: Gecko (Mozilla)