CSSMathMax extension type
The CSSMathMax
interface of the
CSS Typed Object Model API
represents the CSS max()
function. It inherits properties and methods from
its parent CSSNumericValue.
API documentation sourced from MDN Web Docs.
- on
- Implemented types
- Available extensions
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- operator → CSSMathOperator
-
The
CSSMathValue.operator
read-only property of the CSSMathValue interface indicates the operator that the current subtype represents. For example, if the currentCSSMathValue
subtype isCSSMathSum
, this property will return the string"sum"
.no setterinherited - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- values → CSSNumericArray
-
The CSSMathMax.values read-only property of the
CSSMathMax interface returns a CSSNumericArray object
which contains one or more CSSNumericValue objects.
no setter
Methods
-
add(
CSSNumberish values) → CSSNumericValue -
The
add()
method of the CSSNumericValue interface adds a supplied number to theCSSNumericValue
.inherited -
div(
CSSNumberish values) → CSSNumericValue -
The
div()
method of the CSSNumericValue interface divides theCSSNumericValue
by the supplied value.inherited -
equals(
CSSNumberish value) → bool -
The
equals()
method of the CSSNumericValue interface returns a boolean indicating whether the passed value are strictly equal. To return a value oftrue
, all passed values must be of the same type and value and must be in the same order. This allows structural equality to be tested quickly.inherited -
max(
CSSNumberish values) → CSSNumericValue -
The
max()
method of the CSSNumericValue interface returns the highest value from among the values passed. The passed values must be of the same type.inherited -
min(
CSSNumberish values) → CSSNumericValue -
The
min()
method of the CSSNumericValue interface returns the lowest value from among those values passed. The passed values must be of the same type.inherited -
mul(
CSSNumberish values) → CSSNumericValue -
The
mul()
method of the CSSNumericValue interface multiplies theCSSNumericValue
by the supplied value.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
sub(
CSSNumberish values) → CSSNumericValue -
The
sub()
method of the CSSNumericValue interface subtracts a supplied number from theCSSNumericValue
.inherited -
to(
String unit) → CSSUnitValue -
The
to()
method of the CSSNumericValue interface converts a numeric value from one unit to another.inherited -
toString(
) → String -
A string representation of this object.
inherited
-
toSum(
String units) → CSSMathSum -
The
toSum()
method of the CSSNumericValue interface converts the object's value to a CSSMathSum object to values of the specified unit.inherited -
type(
) → CSSNumericType -
The
type()
method of the CSSNumericValue interface returns the type ofCSSNumericValue
, one ofangle
,flex
,frequency
,length
,resolution
,percent
,percentHint
, ortime
.inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited