Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Gabe Livan

    (@gabelivan)

    @retrovertigo many thanks for letting me know about this bug! Indeed, it shouldn’t behave like that and apparently, nested “calc” is not something the CSS minifier used by the plugin likes.

    For now, until a fix would be released, I advise you to stop minifying CS files that contain nested “calc”. To do that, you have to go to “Settings” -> “Optimize CSS” -> “CSS Files Minification” and then below “Do not minify the CSS files matching the patterns below (one per line):” there’s a textarea where you can add the exclusions.

    Plugin Author Gabe Livan

    (@gabelivan)

    @retrovertigo UPDATE: I’ve released a patch on the development version that addresses the issue you mentioned and it shouldn’t happen again. You can use this patch (see instructions on how to get it here: https://www.assetcleanup.com/docs/how-to-get-the-development-version-of-asset-cleanup/) until the next tag will be released which will obviously have the fix. Thanks again for letting me know about this bug!

    Thread Starter retrovertigo

    (@retrovertigo)

    So quick Gabe! Very impressive 🙂 Thanks

    Plugin Author Gabe Livan

    (@gabelivan)

    @retrovertigo I’m glad I was able to help! Now, please test it out and let me know if the problem is still there. It shouldn’t be! In my tests, the calc() was preserved fine.

    PS: If you’re happy with the plugin overall, it would be great if you can spare a minute and leave a quick review about it: https://ww.wp.xz.cn/support/plugin/wp-asset-clean-up/reviews/#new-post

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘CSS with nested calc broken’ is closed to new replies.