• Resolved Nicola Modugno

    (@shark986)


    Hello,
    in my CSS I have some “calc” functions.
    When I minify the css the spaces inside the calc function are removed, invalidating the css rule!
    I have seen that others users has already asked for this problem, but I am using the 0.13.3 version and that threads are really old.
    Thank you, Nicola.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @shark986

    Thank you for your inquiry and I am happy to assist you with this.
    In the past, we failed to reproduce the issue. We tried to reproduce it but it doesn’t remove the spaces. Maybe you are using another minifier before/after W3TC minify, or there’s a specific use case where our library doesn’t handle correctly.
    Can you please share the specific syntax and also, try to use the Combine only option and see if that helps.
    Thank you!

    Thread Starter Nicola Modugno

    (@shark986)

    Hello Marko, thank you for the reply.

    To solve the problem I made a manual minification as the site is in production.

    I have checked some minified CSSs, however, and it seems that the calc functions inside were ok, so there is a possibility that Cloudflare was managing (again) the optimized resources. I am not sure about this, but maybe someone could check this input.

    Regards, Nicola.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Minified CSS has calc function broken’ is closed to new replies.