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.

MDN Reference

Constructors

Link copied to clipboard
constructor(vararg values: CSSNumberish)

Properties

Link copied to clipboard

The CSSMathValue.operator read-only property of the CSSMathValue interface indicates the operator that the current subtype represents.

Link copied to clipboard

The CSSMathSum.values read-only property of the CSSMathSum interface returns a CSSNumericArray object which contains one or more CSSNumericValue objects.

Functions

Link copied to clipboard
fun add(vararg values: CSSNumberish): CSSNumericValue

The add() method of the CSSNumericValue.

Link copied to clipboard
fun div(vararg values: CSSNumberish): CSSNumericValue

The div() method of the supplied value.

Link copied to clipboard
fun equals(vararg value: CSSNumberish): Boolean

The equals() method of the value are strictly equal.

Link copied to clipboard
fun max(vararg values: CSSNumberish): CSSNumericValue

The max() method of the passed.

Link copied to clipboard
fun min(vararg values: CSSNumberish): CSSNumericValue

The min() method of the values passed.

Link copied to clipboard
fun mul(vararg values: CSSNumberish): CSSNumericValue

The mul() method of the the supplied value.

Link copied to clipboard
fun sub(vararg values: CSSNumberish): CSSNumericValue

The sub() method of the CSSNumericValue.

Link copied to clipboard
fun to(unit: String): CSSUnitValue

The to() method of the another.

Link copied to clipboard
fun toSum(vararg units: String): CSSMathSum

The toSum() method of the ``js-nolint toSum(units) `` - units - : The units to convert to.

Link copied to clipboard

The type() method of the CSSNumericValue, one of angle, flex, frequency, length, resolution, percent, percentHint, or time.