views:

243

answers:

3

IE is not able to handle more than 4096 css rules. This limit is biting me. So I'm looking for a tool that can identify duplicate css rules and merge them. Doesn't matter much if the result is bigger in size, the point is to have less css rules.

This is not a css compressor question, but a css rules number reduction question.

A: 

Have you tried CSSTidy?

It's able to merge rules into single statements apart from other optimizations.

Rodrigo
I tested it. It does the job, but it also does other non-asked things. It exists in php and C++, but unfortunately not java.
Olivvv
A: 

GWT optimizes all the CSS rules. If you switch over to GWT then probably u wouldn't have to worry about anything.

Kasturi
Read the question, not just the title.
Olivvv
+1  A: 

There is a css parser in Java. It is probably not much of an effort to create a tool which merges rules if they have the same selectors to a single one and writes it to a new css file.

http://www.w3.org/Style/CSS/SAC/

Christian
seems very interesting, we're having a look at it.
Olivvv