CSSMathSum
The CSSMathSum
interface of the CSS Typed Object Model API represents the result obtained by calling CSSNumericValue.add, CSSNumericValue.sub, or CSSNumericValue.toSum on CSSNumericValue.
Properties
The CSSMathValue.operator
read-only property of the CSSMathValue interface indicates the operator that the current subtype represents.
The CSSMathSum.values
read-only property of the CSSMathSum interface returns a CSSNumericArray object which contains one or more CSSNumericValue objects.
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 a boolean indicating whether the passed value are strictly equal.
The max()
method of the CSSNumericValue interface returns the highest value from among the values passed.
The min()
method of the CSSNumericValue interface returns the lowest value from among those values passed.
The mul()
method of the CSSNumericValue interface multiplies the CSSNumericValue
by the supplied value.
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 object to values of the specified unit.
The type()
method of the CSSNumericValue interface returns the type of CSSNumericValue
, one of angle
, flex
, frequency
, length
, resolution
, percent
, percentHint
, or time
.