Search e01
One query across the encyclopedia, books, dictionary, papers, Wikidata and the developer library. Every hit carries its source.
6 results across 6 corpora for CSSMathNegate: CSSMathNegate() constructor.
Developer library 6
CSSMathSum
oses the `calc()` sum's original terms. 300 ## Specifications ## Browser compatibility ## See also - add() - sub() - toSum() - CSSMathValue.operator - CSSMathNegate - CSSMathProduct
CSSMathNegate
CSS Typed Object Model API The **`CSSMathNegate`** interface of the [CSS Typed Object Model API](/docs/Web/API/CSS_Object_Model) represents the negation of a CSSNumericValue. ## Constructor - CSSMathNegate() - : Creates a new `CSSMathNegate` object. ## Instance properties _Also inherits properties from its parent interface, CSSMathValue._ - CSSMathNegate.value - : Returns a CSSNumericValue object. ## S
CSSMathNegate: value property
CSS Typed Object Model API The **`value`** read-only property of the CSSMathNegate interface returns the CSSNumericValue that is being negated. This is the value passed to the constructor, converted to a CSSNumericValue if it isn't one already. If a plain number was passed to the constructor the value returned by this property is the passed value wrapped in a CSSUnitValue with `unit: "number"`. ## Value A CSSNum
CSSMathNegate: CSSMathNegate() constructor
CSS Typed Object Model API The **`CSSMathNegate()`** constructor creates a new CSSMathNegate object which negates the value passed into it. ## Syntax ```js-nolint new CSSMathNegate(arg) ``` ### Parameters - `arg` - : A number or CSSNumericValue that represents the value to negate. ### Exceptions None. ## Examples ### Basic usage The following code creates a `CSSMathNegate` object from a length, then logs
CSSMathValue
inherits methods from its parent interface, CSSNumericValue._ ## Interfaces based on CSSMathValue - CSSMathClamp - CSSMathInvert - CSSMathMax - CSSMathMin - CSSMathNegate - CSSMathProduct - CSSMathSum ## Examples ### `calc()` representations This example shows how the operator property identifies the operation represented by a calc() value's `CSSMathValue` subtype, including for a nested value. #### HTML ```h
CSSMathInvert
{value: 4, unit: "percent"} console.log(product.toString()); // "calc(200px / 4%)" ``` ## Specifications ## Browser compatibility ## See also - div() - CSSMathNegate - CSSMathValue.operator