I think this may do what you want:

http://developer.yahoo.com/yui/compressor/#using

<http://developer.yahoo.com/yui/compressor/#using>Here's a comment about it
I found:

 The CSS 
minification<http://foohack.com/2007/09/squish-it-good-code-compression-for-the-masses/>
in
the YUI compressor, developed by Isaac Schlueter <http://foohack.com/>, is
outstanding, because it also optimizes redundant CSS code, providing a size
savings that you just can’t get from other tools. If you’ve been using
comment and white space removal as your minification strategy, I suggest you
try these out instead and measure the difference.

Craig

On Wed, Jun 9, 2010 at 11:21 AM, Kevin <[email protected]> wrote:

> Is there a tool anywhere that will combine selectors with identical
> declarations?
>
> Trivial example:
>
> .class1 { color: #345; font-size: 1em; }
> .class2 { color: #345; font-size: 2em; }
>
> /* converted to */
>
> .class1, .class2 { color: #345; }
> .class1 { font-size: 1em; }
> .class2 {font-size: 2em; }
>
> --
> --
> You received this because you are subscribed to the "Design the Web with
> CSS" at Google groups.
> To post: [email protected]
> To unsubscribe: [email protected]

-- 
--
You received this because you are subscribed to the "Design the Web with CSS" 
at Google groups.
To post: [email protected]
To unsubscribe: [email protected]

Reply via email to