title | short-title | slug | page-type | status | browser-compat | |
---|---|---|---|---|---|---|
CSSMathMax: CSSMathMax() constructor |
CSSMathMax() |
Web/API/CSSMathMax/CSSMathMax |
web-api-constructor |
|
api.CSSMathMax.CSSMathMax |
{{SeeCompatTable}}{{APIRef("CSS Typed Object Model API")}}
The CSSMathMax()
constructor creates a
new {{domxref("CSSMathMax")}} object which represents the CSS {{CSSXref('max', 'max()')}} function.
new CSSMathMax(args)
args
- : A list of values for the {{domxref('CSSMathProduct')}} object to be either a double integer or a {{domxref('CSSNumericValue')}}.
TypeError
- : Thrown if there is a failure when adding all of the values in args.
To do
{{Specifications}}
{{Compat}}