CSSTidy is the best tool to optimize your css code. However, due to development of CSS3 nowadays, there are already some property are not being converted properly. One of them is the gradient feature.

Timothée Carry-Caignon had a patch already for the PHP code, but I am using the executable files to generate it on the fly with django-compress extension. Therefore, I tried to give it a shot on the C++ source code.

To make it short, here you can find the csstidy1.3.patch file. Apply it against the original source code by Florian Schmitz (the original CSSTidy author) from sourceforge.

After that, you can compile it using below command:
g++ *.cpp -o csstidy

I hope you guys find it useful, cheers!

Bookmark and Share