Title: missing css rules after UCSS
Last modified: July 2, 2023

---

# missing css rules after UCSS

 *  Resolved [jochenthomas](https://wordpress.org/support/users/jochenthomas/)
 * (@jochenthomas)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/missing-css-rules-after-ucss/)
 *     ```wp-block-code
       .class_xyz:before {
           ...
           background-clip: text;
           -webkit-background-clip: text;
           -webkit-text-fill-color: transparent;
           ...   
       }
       ```
   
 * After activating UCSS optimization the CSS class **does not contain** anymore
   the following CSS rule: background-clip: text and/or -webkit-background-clip:
   text;
   See here: [https://caniuse.com/?search=background-clip](https://caniuse.com/?search=background-clip)
   This is absolutely **NOT comprehensible** and understandable.
 * Therefore, please let me know why this happens and how to avoid this.
   Many thanks
   in advance.

Viewing 5 replies - 1 through 5 (of 5 total)

 *  [rudolfl](https://wordpress.org/support/users/rudolfl/)
 * (@rudolfl)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/missing-css-rules-after-ucss/#post-16863217)
 * You have to go through the code and add missing classes to the “UCSS Selector
   Allowlist” in options (Page Optimization->Tuning CSS)
 * It is a tedious process and a pain in the backside, but you do it once and then
   everything works fine.
 * [https://docs.litespeedtech.com/lscache/lscwp/ts-optimize/](https://docs.litespeedtech.com/lscache/lscwp/ts-optimize/)
 *  Thread Starter [jochenthomas](https://wordpress.org/support/users/jochenthomas/)
 * (@jochenthomas)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/missing-css-rules-after-ucss/#post-16863835)
 * I know exactly which class is affected, so I put these class already (before 
   your answer) in the UCSS allow list, so this is not the root cause. What else
   could be a reason?
 *  Plugin Support [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * (@qtwrk)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/missing-css-rules-after-ucss/#post-16864008)
 * class and selector are not exactly thing , adding class may not work
 *  Thread Starter [jochenthomas](https://wordpress.org/support/users/jochenthomas/)
 * (@jochenthomas)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/missing-css-rules-after-ucss/#post-16865140)
 * Sorry, I used the term class incorrectly or limiting, but -yes- of course I also
   used some Element ID’s.
   In this specific case the missing rules are only assigned
   to a class:before.Any other ideas or suggestions?
 *  Plugin Support [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * (@qtwrk)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/missing-css-rules-after-ucss/#post-16870022)
 * have you tried to use browser dev tool -> element to extract selector ?

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘missing css rules after UCSS’ is closed to new replies.

 * ![](https://ps.w.org/litespeed-cache/assets/icon-256x256.png?rev=2554181)
 * [LiteSpeed Cache](https://wordpress.org/plugins/litespeed-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/litespeed-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/litespeed-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/litespeed-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/litespeed-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/litespeed-cache/reviews/)

## Tags

 * [LSC](https://wordpress.org/support/topic-tag/lsc/)

 * 5 replies
 * 3 participants
 * Last reply from: [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * Last activity: [2 years, 11 months ago](https://wordpress.org/support/topic/missing-css-rules-after-ucss/#post-16870022)
 * Status: resolved