-
Notifications
You must be signed in to change notification settings - Fork 715
[css-values] Should round(strategy, A, 0) be NaN or A? #4762
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
|
@Crissov Note the spec doesn't allow I don't have a strong opinion about |
Yeah, in this case the limit is different from the behavior at the limit, I think. The invariant that the result is a multiple of the step is broken.
Note that |
Sure, that's why I said "in a sense", i.e. it's one of the possible solutions of the indetermination, but there are others. |
I'm going to go ahead and close this no-change. I can see the limit argument for making @Loirooriol, does this work for you? |
Yes |
Currently https://drafts.csswg.org/css-values-4/#round-infinities says
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 beA
?On the other hand, being
A
would seem to imply thatA
is a multiple of 0, which technically it's false.But
A / ∞ = 0
, so in a sense we do haveA ≈ 0 * ∞
, dunno.The text was updated successfully, but these errors were encountered: