Chartbreaker
    Preparing search index...

    Interface CSSMathSum

    The CSSMathSum interface of the CSS Typed Object Model API represents the result obtained by calling CSSNumericValue.add, CSSNumericValue.sub, or CSSNumericValue.toSum on CSSNumericValue.

    MDN Reference

    interface CSSMathSum {
        operator: CSSMathOperator;
        values: CSSNumericArray;
        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

    Properties

    operator: CSSMathOperator

    The CSSMathValue.operator read-only property of the CSSMathValue interface indicates the operator that the current subtype represents.

    MDN Reference

    values: CSSNumericArray

    The CSSMathSum.values read-only property of the CSSMathSum interface returns a CSSNumericArray object which contains one or more CSSNumericValue objects.

    MDN Reference

    Methods