CSSMathNegate

The CSSMathNegate interface of the CSS Typed Object Model API negates the value passed into it.

MDN Reference

Constructors

Link copied to clipboard
constructor(arg: 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 CSSMathNegate.value read-only property of the CSSMathNegate interface returns a CSSNumericValue object.

Functions

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

The add() method of the CSSNumericValue interface adds a supplied number to the CSSNumericValue.

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

The div() method of the CSSNumericValue interface divides the CSSNumericValue by the supplied value.

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

The equals() method of the CSSNumericValue interface returns a boolean indicating whether the passed value are strictly equal.

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

The max() method of the CSSNumericValue interface returns the highest value from among the values passed.

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

The min() method of the CSSNumericValue interface returns the lowest value from among those values passed.

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

The mul() method of the CSSNumericValue interface multiplies the CSSNumericValue by the supplied value.

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

The sub() method of the CSSNumericValue interface subtracts a supplied number from the CSSNumericValue.

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

The to() method of the CSSNumericValue interface converts a numeric value from one unit to another.

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

The toSum() method of the CSSNumericValue interface converts the object's value to a CSSMathSum object to values of the specified unit.

Link copied to clipboard

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