W3 Total Cache
W3TC strips some CSS3 stuff in minifying (2 posts)

  1. Daniel J. Lewis
    Posted 3 years ago #

    I discovered a problem with minifying using either the default CSS minification or CSS Tidy.

    Here's my CSS:

    background: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #5588dd), color-stop(100%, #2255aa));
    background: -webkit-linear-gradient(top, #5588dd, #2255aa);
    background: -moz-linear-gradient(top, #5588dd, #2255aa);
    background: -o-linear-gradient(top, #5588dd, #2255aa);
    background: linear-gradient(top, #5588dd, #2255aa);

    When I allow W3TC to do anything other than simply combining the CSS, it destroys my browser-compatibility and compresses the above to:

    background: linear-gradient(top, #5588dd, #2255aa);

    How can I fix this? I have a feeling this explains why webfonts also don't work with W3TC—it's stripping some of the browser-specific code.


  2. Frederick Townes
    Plugin Author

    Posted 3 years ago #

    Tested with TwentyEleven CSS and added the code you supplied but it does not strip the browser specific rules when using Default CSS engine.

    Have you tested with minifying just the specific file that has issues? Also could you provide the CSS file in question and its minified version as well?

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • W3 Total Cache
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic