Note: This feature is available in Web Workers.
The value read-only property of the CSSMathInvert interface returns the CSSNumericValue that is being inverted.
This is the parameter that was passed to the constructor when this object was created.
A CSSNumericValue or one of its derived types.
The following code creates a CSSMathInvert object, then reads its value.
const inverted = new CSSMathInvert(CSS.percent(4));
console.log(inverted.value); // CSSUnitValue {value: 4, unit: "percent"}value returns whatever was passed to arg in the constructor. In this case, we passed CSS.percent(4), so value is a CSSUnitValue. Passing an expression such as CSS.percent(4).add(CSS.em(2)) would result in value returning a CSSMathSum.