Wordpress LScache Plugin: CSS Minify/Combine breaks clip-path
Last Updated on: Wed, 15 Apr 2026 00:00:02 Hi, When using clip-path set to an ID on the page, the CSS minify and/or combine options break it by changing it to a relative path. Like this: .my-selector-with-clip-path clip-path: url(#my-object) Turns into: .my-selector-with-clip-path clip-path: url(wp-content/PATH-TO-THE-STYLESHEET-DIRECTORY-WITH-THE-RULE/#my-object) Correct behavior would be to leave it alone. Ive narrowed this down to know that it happens as soon as CSS minify or combine is active. I cant see any other way than to disable CSS minification for now, but would like to see a fix. Thanks! Noted. Will do some research and figure out the solution later. How do you think if we exclude the pattern url(# from relative URL correction in CSS optimization? That wouldve been my first idea at a solution too. I did give it some thought, and I cant see why one would ever want to correct relative URL on an ID. Just one of these things you never think of until it happens.
LiteCache Rush: Speed comes from using less, not from doing it faster
Reference