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
Incorrect minified CSS output #267
Comments
Hey @wearymax - thanks for the report! I added your example code to the test suite, but I am not able to reproduce the issue - both on my own machine, or on Travis CI. Try increasing pcre.backtrack_limit & pcre.recursion_limit (http://php.net/manual/en/pcre.configuration.php)? If the problem persists, feel free to reopen this ticket with some additional details (complete CSS, PHP version, pcre config, ...) |
Hi @matthiasmullie, I have a similar issue when I try to minify core.js file of AmMap 4. We are using WP Rocket, a WordPress cache plugin. It uses your minify system. When this file is minified, a semicolon is deleted which cause a JS error: I opened an issue on AmCharts4 repo: I also tested with your online minifier, and the problem is present. Here is the code when the file is minified and merged: And the code of the original file: I don't if this error is the same of @wearymax and his CSS syntax but it looks like. Below some information of our server: Thanks. |
Hi there!
I see that version 1.3.61 compiled incorrect CSS output from calc(var() + var()) methods, an example this code:
ul p { padding-left: calc((var(--icon-size) / 2) + var(--horisontal-space)); }
will look as:
ul p{padding-left:calc((var(--icon-size) / 2)+var(--horisontal-space))}
that is invalid because math operations and variables must be separated with space symbol. This is valid output:
ul p{padding-left:calc((var(--icon-size) / 2) + var(--horisontal-space))}
In the 1.3.60 it's works fine, check please!
The text was updated successfully, but these errors were encountered: