Quantcast
Channel: ajaxmin Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 683

Edited Unassigned: Convert # css color to named color when minifying [21611]

$
0
0
If you have in your css

color: #ff0000;
color: #00ff00;
color:#0f0;

and then minify the css, the value is converted to

color:red;
color:green;
color:green;

While this may make readability sense, it probably makes no programmatic sense on two levels: 1) depending on the color, the result is actually larger (defeats the minify) and you can't easily read it as your css is not effectively one line; 2) at the browser level, I would imagine the lookup mechanism for the color would be slower than if the hex number is used (I have no insight as to if this is true, however, just thinking about it, the coding would be faster and smaller for the hex conversion which the name color has to be converted to anyways).
Comments: ** Comment from web user: ronlo **

Released


Viewing all articles
Browse latest Browse all 683

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>