-
Notifications
You must be signed in to change notification settings - Fork 5
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
The validation to number step is wrong #86
Comments
Currently, we always assume the number is a multiple of
Line 339 in b5d6e70
Which should be changed to: .some(n => n != null && !canStepTo(basis, n, result.step)) However, this will be a breaking change, that value won't be a multiple of step anymore. WDYT? |
The article says
so I think we should just forcefully snap min, max, default to the nearest step-multiple and emit a warning. |
I think it refers to user-input value, especially on a The issue in the OP is that, the following input is valid: <input type=number value=1 min=1 max=5 step=2> But the following code is not valid in usercss-meta:
|
So the correct check should be |
Why I cannot set it to zero? When it become zero, it is just 12px
[updated: 2023.03.10 - I can no longer reproduce this issue; the default value issue can be closed.]
Why this is not allowed?
The text was updated successfully, but these errors were encountered: