CSSMathClamp

Limited availability

This feature is not Baseline because it does not work in some of the most widely-used browsers.

The CSSMathClamp interface of the CSS Typed Object Model API represents the CSS clamp() function. It inherits properties and methods from its parent CSSNumericValue.

CSSStyleValue CSSNumericValue CSSMathValue CSSMathClamp

Constructor

CSSMathClamp()

Creates a new CSSMathClamp object.

Instance properties

CSSMathClamp.lower

Returns a CSSNumericValue object containing the minimum value.

CSSMathClamp.value

Returns a CSSNumericValue object containing the preferred value.

CSSMathClamp.upper

Returns a CSSNumericValue object containing the upper value.

Static methods

The interface also inherits methods from its parent interface, CSSMathValue.

Instance methods

The interface also inherits methods from its parent interface, CSSMathValue.

Examples

To do

Specifications

Specification
CSS Typed OM Level 1
# cssmathclamp

Browser compatibility

See also