CSS clip path changed when asset optimisation used
-
Hello. I discovered an issue with the path for my clip path is changed and breaks when using asset optimisaton on my css.
In the original file I have:
.is-style-blob-shape img { width: calc(100% - 10px); -webkit-clip-path: url(#blob-clip-path); clip-path: url(#blob-clip-path); }And in my page I have <clipPath id=”blob-clip-path”> for the path to use. That works fine. But when I use asset optimisation and minify the file its converting that relative path to an absolute one, changing the rule incorrectly to:
.is-style-blob-shape img { width: calc(100% - 10px); -webkit-clip-path: url(https://www.mydomain.info/wp-content/themes/mytheme/#blob-clip-path); clip-path: url(https://www.mydomain.info/wp-content/themes/mytheme/#blob-clip-path); }I need it to stay as just #blob-clip-path for it to work. Please advise.
The topic ‘CSS clip path changed when asset optimisation used’ is closed to new replies.