We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 92bef11 commit b3b5798Copy full SHA for b3b5798
css-values-5/Overview.bs
@@ -2115,6 +2115,12 @@ Generating a Random Numeric Value: the ''random()'' function</h3>
2115
rather than allowing the UA to generate a [=random base value=]
2116
and controlling how it's shared.
2117
2118
+ While ''1'' is technically allowed as a valid value
2119
+ (because CSS grammars can only express closed ranges),
2120
+ the [=random base value=] is clamped to the highest representable value
2121
+ less than ''1'',
2122
+ so [=random base values=] remain in the half-open range `[0, 1)`.
2123
+
2124
Note: While this <em>might</em> be useful for authors
2125
to get predictable values while testing a page,
2126
the reason it exists is to fix some corner cases in [=inheritance=]
0 commit comments