Ticket #1977625 (closed enhancement)

Reporter


sfbugs
Opened: 05/29/08
Last modified: 12/12/12
Status: closed
Type: enhancement
Resolution: wontfix

Owner


Stoyan Stefanov
Target Release: FUTURE
Priority: P3 (normal)
Summary: Improve CSS compression level by combining rules
Description:

In my CSS, I typically have quite a few distinct selectors that in fact have the same rule. The most typical one being {display:none}. E.g.:

.PrintOnly {display:none}
.Hide {display:none}
.Inactive {display:none}

It would be nice if the YUI compressor could combine these to e.g.:

.PrintOnly,.Hide,.Inactive{display:none}

As far as I can see there should be no side effects.

Type: enhancement Observed in Version: 2.4.2
Component: YUICompressor Severity: S3 (normal)
Assigned To: Stoyan Stefanov Target Release: FUTURE
Location: Library Code Priority: P3 (normal)
Tags: Relates To:
Browsers: N/A
URL:
Test Information:

Change History

George

YUI Developer

Posted: 06/2/08
  • summary changed from Improve CSS compression level by combining rules to [#1972116] Improve CSS compression level by combining rules

Forwarding to component owner for consideration.

sfbugs

Posted: 01/7/09

This ticket was imported from Source Forge.

Orginially submitted by: znerd

George

YUI Developer

Posted: 04/30/09

George

YUI Developer

Posted: 09/23/09

Isaac Z. Schlueter

YUI Contributor

Posted: 09/24/09
  • browser changed to N/A
  • location changed to Library Code
  • milestone changed to FUTURE
  • resolution changed from None
  • status changed from assigned to accepted
  • version changed from None to 2.4.2

Chris Burroughs

YUI Contributor

Posted: 11/3/09

Note that Andrew Roberts has patches that implements this and has expressed interest in pushing them upstream.. There is a branch with them in my repo with Andry's changes merged in if anyone is interested.

http://www.andy-roberts.net/software/csscompressor/index.html

George

YUI Developer

Posted: 01/30/10

Adam Moore

YUI Contributor

Posted: 02/3/10

For Stoyan, please check out the css changes in this project which is a fork of yuicompressor.

http://www.andy-roberts.net/software/csscompressor/index.html

George

YUI Developer

Posted: 02/11/10

Jenny Donnelly

YUI Developer

Posted: 12/12/12
  • resolution changed to wontfix
  • status changed from assigned to closed

Thank you for your bug report. We are deprecating YUI Compressor in favor of yuglify. Please see our announcement for more information: http://www.yuiblog.com/blog/2012/10/16/state-of-yui-compressor/. We will consider migrating these legacy tickets to GitHub if there are community maintainers willing to step up and own them.