@@ -2272,7 +2272,7 @@ Generating a Random Numeric Value: the ''random()'' function</h3>
2272
2272
the result’s type will be the consistent type.
2273
2273
2274
2274
<div class=example>
2275
- For example, ''random(50px, 100%, by 1em)'' is valid
2275
+ For example, ''random(50px, 100%, 1em)'' is valid
2276
2276
(assuming percentages are valid in the context this is used,
2277
2277
and resolve to a <<length>> ),
2278
2278
as all three arguments resolve to a length.
@@ -2317,7 +2317,7 @@ Generating a Random Numeric Value: the ''random()'' function</h3>
2317
2317
<h4 id=random-infinities>
2318
2318
Argument Ranges</h4>
2319
2319
2320
- In ''random(A, B, C )'' ,
2320
+ In ''random(A, B)'' ,
2321
2321
if A is infinite,
2322
2322
the result is infinite.
2323
2323
@@ -2327,16 +2327,19 @@ Argument Ranges</h4>
2327
2327
or large enough to be treated as infinite in the user agent,
2328
2328
the result is NaN.
2329
2329
2330
+ In ''random(A, B, C)'' ,
2331
+ the same behavior for A and B as defined above applies.
2332
+
2330
2333
If C is infinite,
2331
2334
the result is A.
2332
2335
2333
2336
If C is negative, zero,
2334
2337
or positive but close enough to zero
2335
2338
that the range for the step multiplier
2336
- (the <code> N</code> mentioned in the argument's definition )
2339
+ (the <code> N</code> mentioned in [[#random-evaluation]] )
2337
2340
would be infinite in the user agent,
2338
2341
the step must be <em> ignored</em> .
2339
- (The function is treated as if it only A and B were provided.)
2342
+ (The function is treated as if only A and B were provided.)
2340
2343
2341
2344
Note: As usual for [=math functions=] ,
2342
2345
if any argument calculation is NaN,
0 commit comments