Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

java-based tool to reduce the number of css rules

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.

like image 530
Olivvv Avatar asked Jul 08 '10 09:07

Olivvv


1 Answers

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/

like image 91
Christian Avatar answered Sep 19 '22 15:09

Christian