Expand description
Specified numbers and integers.
Structs§
- Integer
- A specified
<integer>, either a simple integer value, a resolved calc expression, or a full calc expression tree that cannot be computed at parse time. Note that a calc expression may not actually be an integer; it will be rounded at computed-value time. - NoCalc
Number - A non-calc
<number>value. - Number
- A CSS
<number>specified value.
Functions§
- parse_
integer_ with_ clamping_ mode - Parse an
<integer>value, with a given clamping mode. - parse_
number_ with_ clamping_ mode - Parse a
<number>value, with a given clamping mode.
Type Aliases§
- Greater
Than OrEqual ToOne Number - A Number which is >= 1.0.
- NonNegative
Integer - An Integer which is >= 0. For calc expressions that couldn’t be resolved at parse time, this value is clamped to 0 at computed-value time.
- NonNegative
Number - A Number which is >= 0.0.
- Positive
Integer - An Integer which is >= 1. For calc expressions that couldn’t be resolved at parse time, this value is clamped to 1 at computed-value time.