Get to know MDN better
This feature is not Baseline because it does not work in some of the most widely-used browsers.
The CSSMathValue interface of the CSS Typed Object Model API a base class for classes representing complex numeric values.
CSSStyleValue CSSNumericValue CSSMathValueBelow is a list of interfaces based on the CSSMathValue interface.
Indicates the operator that the current subtype represents.
The interface may also inherit methods from its parent interface, CSSNumericValue.
The interface may also inherit methods from its parent interface, CSSNumericValue.
We create an element with a width determined using a calc() function, then console.log() the operator.
We assign a width with a calculation
We add the JavaScript
The CSSMathValue.operator returns "sum" because styleMap.get("width").values[1].value ); is -20: adding a negative number.
| CSS Typed OM Level 1 # complex-numeric |
Enable JavaScript to view this browser compatibility table.
This page was last modified on Apr 9, 2026 by MDN contributors.
Your blueprint for a better internet.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.