CSSNumericValue
The CSSNumericValue interface of the CSS Typed Object Model API represents operations that all numeric values can perform.
Inheritors
Functions
The add() method of the CSSNumericValue interface adds a supplied number to the CSSNumericValue.
The div() method of the CSSNumericValue interface divides the CSSNumericValue by the supplied value.
The equals() method of the CSSNumericValue interface returns true if every value passed to it is the same as the CSSNumericValue, and false otherwise.
The max() method of the CSSNumericValue interface returns the highest value from among the values passed. The passed values must be of the same type.
The min() method of the CSSNumericValue interface returns the lowest value from among those values passed. The passed values must be of the same type.
The mul() method of the CSSNumericValue interface multiplies the CSSNumericValue by the supplied values.
The sub() method of the CSSNumericValue interface subtracts a supplied number from the CSSNumericValue.
The to() method of the CSSNumericValue interface converts a numeric value from one unit to another.
The toSum() method of the CSSNumericValue interface converts the object's value to a CSSMathSum of CSSUnitValues using only the specified units, if possible. If called with no units, it simplifies the value into a minimal sum of CSSUnitValues instead.
The type() method of the CSSNumericValue interface returns the type of CSSNumericValue, one of angle, flex, frequency, length, resolution, percent, percentHint, or time.