litespeedtech / litespeedtech/lscache_wp
CSS minification brakes url() param
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 257
- Forks
- 123
- PR merge metrics
- No merged PRs in 30d
Description
I'm trying to implement branded background for instagram icon using svg gradient, but plugin brakes CSS rule
```scss
.social-instagram {
svg {
path {
fill: url(#instagram-icon-gradient)
}
}
}
```
after minification, lscache rewrite url() into `/path-to-theme-css-folder/#instagram-icon-gradient`
We using LiteSpeed Cache v3.2 with WP v5.4.2 and LiteSpeed v7.6
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue with the shown SCSS rule using LiteSpeed Cache v3.2, WordPress 5.4.2, and LiteSpeed 7.6, then trace the CSS minification entry point that rewrites url() values. Done means the SVG fragment reference remains usable after minification instead of becoming a path to the theme CSS folder.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- css, php, wordpress
- Domain
- frontend, performance
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100