litespeedtech / lscache_wp

LiteSpeed Cache for WordPress
http://wordpress.org/plugins/litespeed-cache/
GNU General Public License v3.0
217 stars 109 forks source link

CSS optimisation, wrong hex when rgb #680

Open kokers opened 5 months ago

kokers commented 5 months ago

You can write colors in rgb(223 223 223) (without the , now) and this is correct (the coma is the legacy one) but during optimization it swaps rgb to hex, but only the first number and ignoring the rest. So the rgb(223 223 223) becomes #df which is incorrect. Not sure how it treats the / alpha values. But rgb definition changed, and during css optimization it breaks.

Current rgb css syntax https://developer.mozilla.org/en-US/docs/Web/CSS/color_value/rgb

timotei-litespeed commented 5 months ago

Thank you for the bug report. We will fix it in a future release.