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 CSSMathSum.
Developer library 6
Firefox 160 release notes for developers (Stable)
(5))` adds two pixel values. The result is a CSSUnitValue (`15px` in this example) when it can be simplified to a single unit, or a math expression such as a CSSMathSum when it can't be simplified (for example, when adding `px` to `%`). ([Firefox bug 2081689](https://bugzil.la/2081689)). - **Canvas 2D color space**: `gfx.canvas.colorspace.enabled` The [`colorSpace`](/docs/Web/API/HTMLCanvasElement/getContext#co
CSSMathSum
CSS Typed Object Model API The **`CSSMathSum`** interface of the [CSS Typed Object Model API](/docs/Web/API/CSS_Object_Model) represents the sum of two or more CSSNumericValue values — in cases where the result can't be represented as a single value. ## Constructor - CSSMathSum() - : Creates a new `CSSMathSum` object. ## Instance properties _Also inherits properties from its parent interface, CSSMathValue._
CSSMathSum: CSSMathSum() constructor
CSS Typed Object Model API The **`CSSMathSum()`** constructor creates a new CSSMathSum object representing the sum of the arguments passed into it. Numeric arguments are wrapped into CSSUnitValue objects with a unit of `"number"`. All arguments are stored as separate items in its values property. ## Syntax ```js-nolint new CSSMathSum(arg1) new CSSMathSum(arg1, arg2) new CSSMathSum(arg1, arg2, /* …, */ argN) ```
CSSMathSum: values property
CSS Typed Object Model API The **`values`** read-only property of the CSSMathSum interface returns a CSSNumericArray containing the CSSNumericValue objects being summed together. ## Value A CSSNumericArray. ## Examples ### Basic usage The following code creates a `CSSMathSum` object and logs its `values` and length. ```js const sum = new CSSMathSum(CSS.px(10), CSS.em(5), CSS.percent(50)); console.log(sum.valu
CSSMathProduct
calc()` product's original terms. 300 ## Specifications ## Browser compatibility ## See also - mul() - div() - CSSMathValue.operator - CSSMathInvert - CSSMathSum
StylePropertyMapReadOnly: get() method
lue. For example, a property assigned a keyword might return a CSSKeywordValue, while a property assigned the result of a mathematical operation might return a CSSMathSum. ### Exceptions - TypeError - : Thrown if `property` is not a valid CSS property name. ## Examples ### Basic usage This example shows how to get a few properties and their values. #### HTML First we create a link inside a paragraph: ```htm