GO-V.ORG
As seen in

CSSMathInvert: value property

CSS Typed Object Model API

CSS Typed Object Model API

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.

## Value

A CSSNumericValue or one of its derived types.

## Examples

### Basic usage

The following code creates a `CSSMathInvert` object, then reads its `value`.

```js
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.

## Specifications

## Browser compatibility

## See also

- CSSMathNegate.value

source: MDN Web Docs mirror · page

Cite this

"CSSMathInvert: value property". MDN Web Docs. CC BY-SA 2.5 (MDN). https://developer.mozilla.org/en-US/docs/Web/API/CSSMathInvert/value

JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy

Save to pass ·