litespeedtech / litespeedtech/lscache_wp

CSS minification brakes url() param

Open
#236 2 comments 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.