Skip to content

Commit f05017d

Browse files
committed
[css-values-5] Specify that zero/small steps get ignored. #11634
1 parent 6740d94 commit f05017d

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

css-values-5/Overview.bs

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2120,17 +2120,23 @@ Argument Ranges</h4>
21202120
In ''random(A, B, by C)'',
21212121
if A or B is infinite,
21222122
the result is NaN.
2123-
If C is infinite,
2124-
the result is A.
21252123

21262124
If A and B are finite,
21272125
but the distance between them (''B - A'')
21282126
is large enough to become infinite in the user agent,
21292127
the result is NaN.
21302128

2131-
(If C is zero or negative,
2132-
the result is A,
2133-
but that falls out of the standard definition.)
2129+
If C is negative and non-zero,
2130+
the result is NaN.
2131+
If C is infinite,
2132+
the result is A.
2133+
2134+
If C is zero,
2135+
or positive but close enough to zero
2136+
that the range for the step multiplier
2137+
(the <code>N</code> mentioned in the argument's definition)
2138+
would be infinite in the user agent,
2139+
the step must be <em>ignored</em>.
21342140

21352141
Note: As usual for [=math functions=],
21362142
if any argument calculation is NaN,

0 commit comments

Comments
 (0)