YUI-CSS-compressor-PHP-port icon indicating copy to clipboard operation
YUI-CSS-compressor-PHP-port copied to clipboard

Minification doesn't respect RGB values in CSS

Open jandreaucodes opened this issue 4 years ago • 0 comments

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.

jandreaucodes avatar Feb 09 '21 20:02 jandreaucodes