You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The definition of the CSS random() function (https://drafts.csswg.org/css-values-5/#randomness) could use clarification on the expected math for computing a uniform distribution for ranges where for finite (but very large) max - min overflows and equals infinity. A naive implementation (or one that is using say, the C++ standard library's std::uniform_real_distribution) returns infinity for all cases here, but additional work could make this work if that is desired.
A similar problem arises for sufficiently tiny step values.
For all other math functions defined by calc, there have been clear IEEE-754 semantics to follow, or explicit algorithms (as with progress()). Given the new territory here, it would be useful to be specific in the requirements.
The text was updated successfully, but these errors were encountered:
The definition of the CSS random() function (https://drafts.csswg.org/css-values-5/#randomness) could use clarification on the expected math for computing a uniform distribution for ranges where for finite (but very large)
max - min
overflows and equalsinfinity
. A naive implementation (or one that is using say, the C++ standard library's std::uniform_real_distribution) returnsinfinity
for all cases here, but additional work could make this work if that is desired.A similar problem arises for sufficiently tiny
step
values.For all other math functions defined by calc, there have been clear IEEE-754 semantics to follow, or explicit algorithms (as with
progress()
). Given the new territory here, it would be useful to be specific in the requirements.The text was updated successfully, but these errors were encountered: