-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Tip on how to fix that caveat #10
Comments
The caveat says "very big lists", which means the problem is large integers and not floats. |
@aleclarson I'm aware. JS has no such thing as actual integers (only doubles per spec, with a few conversions to an integer-like float), and so floats would perfectly suffice here. If you only care about integers, you have two options:
Note that large integers and non-integer floats could cause similar issues, so you realistically need to address both. |
@isiahmeadows True 😅 |
FYI the caveat issue, FF Bug 373875, was closed as fixed about a year ago now. |
That caveat you listed, you can work around it by sanitizing the output using
parseFloat(size).toString() + "px"
.The text was updated successfully, but these errors were encountered: