[csswg-drafts] [css-values] Should round(strategy, A, 0) be NaN or A? (#4762)

Loirooriol has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-values] Should round(strategy, A, 0) be NaN or A? ==
Currently https://drafts.csswg.org/css-values-4/#round-infinities says

> In `round(A, B)`, if B is 0, the result is NaN.

But according to @tabatkins "my aesthetic sense is telling me I'm not allowed to say it's NaN when there are clear limit values."

In this case the limit is clear: `lim_{x→0} round(strategy, A, x) = A`.
So maybe `round(strategy, A, 0)` should be `A`?

On the other hand, being `A` would seem to imply that `A` is a multiple of 0, which technically it's false.
But `A / ∞ = 0`, so in a sense we do have `A ≈ 0 * ∞`, dunno.

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4762 using your GitHub account

Received on Saturday, 8 February 2020 16:11:24 UTC