operator unary- method

CssValue operator unary-()

Returns a new CssValue with this value's unit and the negation of this value's number.

Implementation

CssValue operator -() {
  return CssValue(-number, unit);
}