The max() method of the CSSNumericValue interface returns the highest value from among the values passed.
max()
MDN Reference