• Resolved Erik Bernskiold

    (@erik-bernskiold)


    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. I’ve narrowed this down to know that it happens as soon as CSS minify or combine is active.

    I can’t see any other way than to disable CSS minification for now, but would like to see a fix.

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Hai Zheng?

    (@hailite)

    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?

    Thread Starter Erik Bernskiold

    (@erik-bernskiold)

    That would’ve been my first idea at a solution too.
    I did give it some thought, and I can’t 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. ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘CSS Minify/Combine breaks clip-path’ is closed to new replies.