Readonly
unitThe CSSUnitValue.unit
read-only property of the CSSUnitValue interface returns a string indicating the type of unit.
The CSSUnitValue.value
property of the A double.
The equals()
method of the value are strictly equal.
The mul()
method of the the supplied value.
The toSum()
method of the js-nolint toSum(units)
- units
- : The units to convert to.
The type()
method of the CSSNumericValue
, one of angle
, flex
, frequency
, length
, resolution
, percent
, percentHint
, or time
.
The
CSSUnitValue
interface of the CSS Typed Object Model API represents values that contain a single unit type.MDN Reference