For AI agents: a documentation index is available at /llms.txt. Markdown versions of all pages are available by appending .md to any URL.

Interface CSSNumericValue

The CSSNumericValue interface of the CSS Typed Object Model API represents operations that all numeric values can perform.

MDN Reference

interface CSSNumericValue {
    add(...values: CSSNumberish[]): CSSNumericValue;
    div(...values: CSSNumberish[]): CSSNumericValue;
    equals(...value: CSSNumberish[]): boolean;
    max(...values: CSSNumberish[]): CSSNumericValue;
    min(...values: CSSNumberish[]): CSSNumericValue;
    mul(...values: CSSNumberish[]): CSSNumericValue;
    sub(...values: CSSNumberish[]): CSSNumericValue;
    to(unit: string): CSSUnitValue;
    toString(): string;
    toSum(...units: string[]): CSSMathSum;
    type(): CSSNumericType;
}

Hierarchy (View Summary)

Index

Methods

  • The toSum() method of the js-nolint toSum(units) - units - : The units to convert to.

    MDN Reference

    Parameters

    • ...units: string[]

    Returns CSSMathSum

Was this helpful?