- From: Oriol Brufau via GitHub <sysbot+gh@w3.org>
- Date: Fri, 31 Jan 2020 23:45:45 +0000
- To: public-css-archive@w3.org
Loirooriol has just created a new issue for https://github.com/w3c/csswg-drafts: == [css-values] mod(−0, +∞) and mod(+0, −∞) not handled correctly == 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](https://drafts.csswg.org/css-values-4/#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`. Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4723 using your GitHub account
Received on Friday, 31 January 2020 23:45:46 UTC