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 CSSMathMin: values property.
Developer library 6
CSSMathMin
CSS Typed Object Model API The **`CSSMathMin`** interface of the [CSS Typed Object Model API](/docs/Web/API/CSS_Object_Model) represents the CSS min() function. ## Constructor - CSSMathMin() - : Creates a new `CSSMathMin` object. ## Instance properties _Also inherits properties from its parent interface, CSSMathValue._ - CSSMathMin.values - : Returns a CSSNumericArray object which contains one or more
CSSMathMin: values property
CSS Typed Object Model API The **`values`** read-only property of the CSSMathMin interface returns a CSSNumericArray containing the CSSNumericValue objects being compared to find the minimum. ## Value A CSSNumericArray. ## Examples ### Basic usage The following code creates a `CSSMathMin` object and logs its `values` and length. ```js const min = new CSSMathMin(CSS.px(10), CSS.em(5), CSS.percent(50)); consol
CSSMathMin: CSSMathMin() constructor
CSS Typed Object Model API The **`CSSMathMin()`** constructor creates a new CSSMathMin object that represents the CSS min() function. ## Syntax ```js-nolint new CSSMathMin(arg1) new CSSMathMin(arg1, arg2) new CSSMathMin(arg1, arg2, /* …, */ argN) ``` ### Parameters - `arg1`, …, `argN` - : A list of numbers or CSSNumericValue objects. ### Exceptions - `SyntaxError` DOMException - : Thrown if no arguments a
CSSMathNegate
athNegate` directly. It's produced by the internal negation step that sub() applies to its arguments before adding them: negating a CSSMathSum, CSSMathProduct, CSSMathMin, CSSMathMax, CSSMathClamp, or CSSMathInvert wraps it in a `CSSMathNegate`. Negating a plain CSSUnitValue (a length, percentage, etc.) instead flips the sign of its `value` directly, so subtracting simple values doesn't normally produce a `CSSMathNeg
CSSMathValue
ethods _Also 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. ##
CSSMathValue: operator property
terface | Value | | ----------------------------- | ----------- | | CSSMathSum | `"sum"` | | CSSMathProduct | `"product"` | | CSSMathMin | `"min"` | | CSSMathMax | `"max"` | | CSSMathClamp | `"clamp"` | | CSSMathNegate | `"negate"` | | CSSMathInvert | `"invert"` | ## Examples ### Basic usage This example shows how the `operator` property identifies the oper