Skip to content

Commit 88ea5a5

Browse files
committed
[css-egg-1] Improved definition for ❓unit (to please @tabatkins)
1 parent 2fc467f commit 88ea5a5

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

css-egg-1/Overview.bs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,14 @@ this specification introduces three <dfn>random value units</dfn> covering a bro
452452
<tr><th><dfn style="white-space: nowrap">❓</dfn>
453453
<td>Random value
454454
<td>Returns a <<number>>, <<dimension>>, or <<percentage>> between ''0'' and the given value,
455-
a <<color>>, <<string>>, or any kind of <a href="https://drafts.csswg.org/css-values-4/#keywords">pre-defined keyword</a>.
455+
a <<color-function>> with each of its color component values between ''0'' and the given value,
456+
a <<string>> with a number of characters between ''0'' and the given value rounded to the nearest integer,
457+
or any kind of <a href="https://drafts.csswg.org/css-values-4/#keywords">pre-defined keyword</a>
458+
starting with a [=letter index=] between ''0'' and the given value rounded to the nearest integer,
459+
normalized to a [0, 25] range.
460+
461+
The <dfn>letter index</dfn> assigns numbers ''0'' through ''25'' to letters ''a'' through ''z'',
462+
with ''0'' for ''a'' and ''25'' for ''z''.
456463
<tr><th><dfn style="white-space: nowrap">🎁</dfn>
457464
<td>Complete randomness
458465
<td>May return any kind of value defined in [[CSS-VALUES-5]],

0 commit comments

Comments
 (0)