tubalmartin / YUI-CSS-compressor-PHP-port

A PHP port of the YUI CSS compressor.
230 stars 34 forks source link

Minification doesn't respect RGB values in CSS #62

Open jandreaucodes opened 3 years ago

jandreaucodes commented 3 years ago

When minifying CSS, color values using RGB are breaking.

An example is:

Pre-minification: background: rgb(255, 255, 255, 1.0) !important; Post-minification: background: #ffffff01 !important;

Compressing the RGB value seems to work in that it converts to ffffff, but it's including the opacity in the hex value, which causes it to break.