-
-
Notifications
You must be signed in to change notification settings - Fork 15
Document use of eval()
to parse calculations
#12
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
I think this is not documented because this is not compatible with specs (and this plugins aims to reduce css calc, following specs). So I don't think it's a good idea. Ideally, eval() should not be used, but I was lazy when I made this. |
@MoOx Is this still applicable? There is no |
My guess it that the package used still offers more than CSS specs... |
The original example no longer works, as |
I noticed that the way math expressions are reduced is by using
eval()
(reduce-css-calc/index.js
Line 75 in 1ce8bd0
See this codepen as an example.
Personally I view this as a feature, and feel like it should be documented rather than just being an implementation detail. What do you think?
The text was updated successfully, but these errors were encountered: