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.
Constructor
CSSMathClamp()-
Creates a new
CSSMathClampobject.
Instance properties
CSSMathClamp.lower-
Returns a
CSSNumericValueobject containing the minimum value. CSSMathClamp.value-
Returns a
CSSNumericValueobject containing the preferred value. CSSMathClamp.upper-
Returns a
CSSNumericValueobject 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> |