From https://drafts.csswg.org/css-values-4/#round-infinities
In mod(A, B) only, if B is infinite and A is non-zero and has opposite sign to B, the result is NaN.
Note: All other "infinite B" cases are valid, and just return A immediately.
This means that mod(−0, +∞) = −0
and mod(+0, −∞) = +0
.
However, the returned value is supposed to be between zero and B, with
if B is positive the range starts at 0⁺, and if B is negative it starts at 0⁻.
So we should have mod(−0, +∞) = +0
and mod(+0, −∞) = −0
.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.3