CSSMathSum: CSSMathSum() constructor
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
The CSSMathSum() constructor creates a
new CSSMathSum object which creates a new CSSKeywordValue
object which represents the result obtained by calling
add(), sub(),
or toSum() on CSSNumericValue.
Syntax
js
new CSSMathSum(values)
Parameters
values-
One or more numbers (which are wrapped into
CSSUnitValues ofunit: "number") orCSSNumericValueobjects.
Specifications
| Specification |
|---|
| CSS Typed OM Level 1> # dom-cssmathsum-cssmathsum> |
Browser compatibility
Loading…