CSSMathSum: CSSMathSum() constructor
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 double integers or
CSSNumericValueobjects.
Specifications
| Specification |
|---|
| CSS Typed OM Level 1 # dom-cssmathsum-cssmathsum |
Browser compatibility
| desktop | mobile | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
CSSMathSum() constructor | |||||||||||