CSSMathSum()

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

new CSSMathSum(values)

Parameters

values

One or more double integers or CSSNumericValue objects.

Specifications

Specification
CSS Typed OM Level 2
# dom-cssmathsum-cssmathsum

Browser compatibility

BCD tables only load in the browser